Make handleKeyboardEvent return true when the event really is handled