Handle language-switching keystroke gracefully