Callback called to react to a key event
typedef KeyEventPredicate = bool Function(FocusNode, KeyEvent);