phaser - v4.0.0-rc.4
    Preparing search index...
    DOWN: string

    The Key Down Event.

    This event is dispatched by a [Key]Phaser.Input.Keyboard.Key object when it is pressed.

    Listen for this event from the Key object instance directly:

    var spaceBar = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);

    spaceBar.on('down', listener)

    You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_DOWN]Phaser.Input.Keyboard.Events#event:ANY_KEY_DOWN for details.