Refactored the TextBox_KeyUp event handler, simplified the execution path by removing unneeded else if statement.