[readonly] event : Object Stores the most recent DOM event.
onDown : Phaser.Signal This Signal is dispatched every
onHoldCallback : Function A callback that is called while this Key is held down. Warning: Depending on refresh rate that could
isUp : boolean The "up" state of the key. This will remain true for as long as the keyboard thinks this key is up
new Key(game, keycode) If you need more fine-grained control over the handling of specific keys you can create and use Phaser.Key objects
downDuration(duration) → {boolean} Returns true if the
isDown : boolean The "down" state of the key. This will remain true for as long as the keyboard thinks this key is
duration : number If the key is down this value holds the duration of that key press and is constantly updated.If the key
timeDown : number The timestamp when the key was last pressed down. This is based on Game.time.now.
onHoldContext : Object The context under which the onHoldCallback will be called. Source
Page 1 of 2