downDuration(duration) → {boolean} Returns true if the
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
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
onDown : Phaser.Signal This Signal is dispatched every
[readonly] event : Object Stores the most recent DOM event.
isDown : boolean The "down" state of the key. This will remain true for as long as the keyboard thinks this key is
timeDown : number The timestamp when the key was last pressed down. This is based on Game.time.now.
duration : number If the key is down this value holds the duration of that key press and is constantly updated.If the key
onUp : Phaser.Signal This Signal is dispatched every
Page 1 of 2