Handler for the PreviewKeyDown event on the TextBox