Initialize KeyControls object.
Gets status of the spacebar.
Sets status of the spacebar.
Gets status of the X key.
Gets x axis input direction.
Checks left arrow or A key for left, and right arrow or D key for down.
Gets y axis input direction.
Checks up arrow or W key for up, and down arrow or S key for down.
Gets or sets the value of a key.
KeyboardEvent code for the key (e.g. 'KeyW' for W).
If provided, sets the key's value.
Whether or not key is 'pressed'.
Resets all keys to 'unpressed' state.
Provides access to keyboard inputs.