on Key Event
Adding this modifier to the modifier parameter of a component will allow it to intercept key events.
Parameters
on Key Event
This callback is invoked when the user interacts with the keyboard. While implementing this callback, return true to stop propagation of this event. If you return false, the key event will be sent to this onKeyEvent's parent.