Bug 1008732 - Simplify key input handling in the Qt widget. r=romaxa