Keyboard event key name?

I saw in some examples, a name “keydown-A” (separated by hyphen) is used, but in some others “keydown_A” (separated by underscore) is used. In my testing program, only the latter worked.

And I tested for “keyup_A”, it did not fire.

Where can I find an official document for all the key names?

Thank you!

:wave:

keydown_ is obsolete.

https://newdocs.phaser.io/docs/3.55.2/Phaser.Input.Keyboard.Events

1 Like