Dispatched when the user presses a key.
Mappings between keys and specific characters vary by device and operating system. This event type is generated after such a mapping occurs but before the processing of an input method editor (IME). IMEs are used to enter characters, such as Chinese ideographs, that the standard QWERTY keyboard is ill-equipped to produce.
button.Type(keyCode, [keyModifier])
Variable | Description |
---|---|
keyCode | The key code value of the key pressed or released. STRING. |
keyModifier | Optional.The key modifiers (for example, the Ctrl key) to use when clicking the control. MODIFIERKEYSTATE. |