Handles a keyboard event, returning true if the event was consumed.
bool handleKeyEvent(KeyEvent event);