Listen keydown/keyup event on document for a specific keyboard key.
the key to listen.
Destroy listeners. The instance is then useless.
Is the key currently pressed.
Register a callback that will be called each time the key is pressed.
Register a callback that will be called each time the key is released.
Listen keydown/keyup event on document for a specific keyboard key.