KeyCode
Class: Phaser.KeyCode
Constructor
new KeyCode()
A key code represents a physical key on a keyboard.
The KeyCode class contains commonly supported keyboard key codes which can be used
as keycode`-parameters in several Phaser.Keyboard and Phaser.Key methods.
Note: These values should only be used indirectly, eg. as Phaser.KeyCode.KEY
.
Future versions may replace the actual values, such that they remain compatible with keycode
-parameters.
The current implementation maps to the KeyboardEvent.keyCode property.
Note: Use Phaser.KeyCode.KEY
instead of Phaser.Keyboard.KEY
to refer to a