Key

Class: Phaser.Key

Constructor

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.

Parameters
Name Type Description
game Phaser.Game

Current game instance.

keycode integer

The key code this Key is responsible for. See Phaser.KeyCode.

Source c