Skip to main content

Keyboard Event

KeyDown

Definition: KeyDown Int

Triggered when a key is pressed.

KeyUp

Definition: KeyUp Int

Triggered when a key is released.

Both events share the same parameter, which represents the keyCode property of the keyboard event. The keyCode values of common keys can be found in Messenger.Misc.KeyCode (available in messenger-extra).

note

Users can use globalData.pressedKeys to get the current pressed keys.