Keypress

This event is triggered whenever a key is pressed or released. It’s RegisterId is "Keypress".

EventData

KeyDown (bool)
True if a key is being held down.
KeyUp (bool)
True if a key was just released.
KeyCode (KeyCodes)
The code of the key being pressed. Used to check which specifically which key is being pressed. See RSL/Core/rfg/KeyCodes.lua for a full list of keycodes.
Control (bool)
True if the ctrl button is being held down.
ShiftDown (bool)
True if the shift button is being held down.
AltDown (bool)
True if the alt button is being held down.
WindowsDown (bool)
True if the windows button is being held down.