Keyboard events are now properly handled.