Window.onKeyDown

Function/Meaning
Key pressed
Type
Event of the Window class
Syntax
onKeyDown(key, shift)
Arguments
key The value of the virtual key code of the pressed key.
shift The state of the shift keys and mouse buttons that were pressed simultaneously when the key was pressed. It will be a combination of the following values using bitwise OR.
ssAlt : ALT key was pressed
ssShift : SHIFT key was pressed
ssCtrl : CTRL key was pressed
ssLeft : Left mouse button was pressed
ssMiddle : Middle mouse button was pressed
ssRight : Right mouse button was pressed
Also, if the keyboard is held down for a long time and a key repeat occurs, the following value is also combined.
ssRepeat : Key repeat occurred
Description
Occurs when a key is pressed.