Signature for key event handlers. Return true if the event was handled.
true
typedef KeyHandler = bool Function(KeyEvent);