⌨️

JS Event KeyCode Real-Time Detector

Dev Core

Professional keyboard event lab — live key/code/keyCode, held-key tracking, mini layout, event log, and JS/TS/React/Vue snippets. 100% client-side.

Professional keyboard event lab · 100% client-side

Real-time key / code / legacy keyCode inspector with held-key tracking, mini layout, event log, and production-ready snippets for JavaScript, TypeScript, React, and Vue.

Click to focus capture zone

Tab works when Ctrl/Cmd is held

No keys held

Keydown

0

Keyup

0

Held

0

Mini layout (physical code)

EscF1F2F3F4F5F6F7F8F9F10F11F12
Back1234567890MinuEqua
QWERTYUIOPBracBracBack
CapsASDFGHJKLSemiQuot
ZXCVBNMCommPeriSlas
CtrlAltAltContCtrl

key vs code vs keyCode

event.key

Character or logical key value (layout-dependent)

e.g. "a", "A", "Enter", "ArrowUp"

event.code

Physical key on the keyboard (layout-independent)

e.g. "KeyA", "Enter", "ArrowUp"

event.keyCode

Legacy numeric code — deprecated, avoid in new code

e.g. 65 for KeyA

Common shortcuts reference

SaveCtrl+S
CopyCtrl+C
PasteCtrl+V
CutCtrl+X
UndoCtrl+Z
RedoCtrl+Y
FindCtrl+F
Select allCtrl+A
RefreshCtrl+R
New tabCtrl+T
Close tabCtrl+W
DevToolsF12
Reload hardCtrl+Shift+R
ScreenshotPrtSc

Sponsored