Skip to content
Várnagy Zoltán edited this page Sep 11, 2026 · 4 revisions
class Key

A keyboard key

Events

PRESS key is pressed

RELEASE key is released

Modifiers

MSHIFT Shift is held

MCTRL Ctrl is held

MALT Alt is held

Special keys

F1

F2

F3

F4

F5

F6

F7

F8

F9

F10

F11

F12

ALT

ALTGR

CAPS

NUM

LCTRL

LSHIFT

META

RCTRL

RSHIFT

LEFT

UP

RIGHT

DOWN

ESC

HOME

END

PGUP

PGDN

INS

DEL

KPENTER

function parse( $x )

Parse key from string

public $event The key event (pressed, released)

public $unicode Unicode value od pressed key if exists

public $special Special key value

public $scan Hardware scan code

public $modif Held modifiers (shift, ctrl, alt)

Clone this wiki locally