This class handles keyboard shortcuts.
The KeyMap is attached to the Player and can be accessed like so:
Although you can create other KeyMap instances, you'll most likely only use the one attached to the player.
Returns a canonical form of the shortcut sequence.
Given a KeyboardEvent (or React wrapper thereof), returns a shortcut sequence matching that event.
Bind a handler to be called when the shortcut sequence is pressed.
Unbind a handler from a shortcut sequence.
Return all shortcut sequences with handlers bound to them.
Get the list of handlers for a given shortcut sequence.
Dispatches all handlers matching the given event.