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