| Name | input_device key pressed|released|toggled |
| Event Lines | <input_device> key pressed|released|toggled |
| Triggers | when a keyboard/mouse key is pressed. |
| Example | |
| Example | |
| Switches | name:<key> to only process the event if the pressed key's name matches the specified matcher. |
| Contexts | <context.key> returns an ElementTag of the pressed key's name.
<context.device> returns an ElementTag of the device used, will be either KEYBOARD or MOUSE.
<context.key_code> returns an ElementTag(Number) of the pressed key's raw key code.
|
| Group | input |
| Source | https://github.com/DenizenScript/Clientizen/blob/master/src/main/java/com/denizenscript/clientizen/events/KeyPressReleaseScriptEvent.java#L13 |