OptionalfnEquivalent to onDownContinuous. Use either that or onDown, onPress, onUp instead.
The id of the key binding, for use when updating.
Note: In versions before 8.2.0, name was used as the id.
The key associated with the binding.
OptionalnameThe name of the key binding. You can use this for display purposes. Note: In versions before 8.2.0, this was used as the id.
OptionalonThe function executed when the binding is pressed down. Uses the default "keydown" event (which is called once when the key is pressed down, has a slight delay, and then repeats if held down for a while).
OptionalonA function that is executed every frame while the binding is being pressed.
The time since the last frame, in milliseconds.
OptionalonThe function executed when the binding is being pressed.
OptionalonThe function executed when the binding is released.
The key binding interface.