008.003

KEYCODE INFO

Get JavaScript keyboard event codes

⌨️
Press any key to see its information
ABOUT KEYBOARD EVENTS

Combination - The complete key combination including modifiers (e.g., "Ctrl+C", "Shift+Alt+T"). This shows the actual keyboard shortcut you pressed.

event.key - Returns the key value of the key represented by the event (e.g., "a", "Enter", "ArrowUp").

event.code - Returns a physical key on the keyboard (e.g., "KeyA", "Enter", "ArrowUp"). This is layout-independent.

event.keyCode - (Deprecated) Returns the numeric keyCode of the key. Use event.key or event.code instead.

Modifiers - Special keys (Ctrl, Shift, Alt, Meta/Command) that modify the behavior of other keys. When detecting combinations, check both the key code and modifier states.