onHoldContext : Object The context under which the onHoldCallback will be called. Source
duration : number If the key is down this value holds the duration of that key press and is constantly updated.If the key
altKey : boolean The down state of the ALT key, if pressed at the same time as this key.
timeUp : number The timestamp when the key was last released. This is based on Game.time.now.
repeats : number If a key is held down this holds down the number of times the key has 'repeated'.
upDuration(duration) → {boolean} Returns true if the
reset(hard) Resets the state of this Key. This sets isDown to false, isUp to true, resets the time
keyCode : number The keycode of this key. Source code:
game : Phaser.Game A reference to the currently running game
shiftKey : boolean The down state of the SHIFT key, if pressed at the same time as this key.
Page 2 of 2