Fix keyboard event bubbling.