Skip to content
Keycode Inspector

Keycode Inspector

v1.1

Press any key to see every property of its JavaScript keyboard event — the modern key and code values, the deprecated numeric codes, modifiers, and a running event log.

Runs locally — nothing leaves your browser.

Press any key to inspect it — try a letter, a modifier combo, or something exotic like AltGr.

Modern properties

event.key
—

The logical value produced — layout- and modifier-aware.

event.code
—

The physical key position — same on every layout.

event.location
—
combination
—

The press as keybinding notation.

modifiersCtrlAltShiftMeta

Legacy properties

event.keyCodeDeprecated
—

Layout-dependent and inconsistent across browsers — removed from the standard.

event.whichDeprecated
—

Alias of keyCode on key events. Use event.key or event.code instead.

Copy as code

Event log

0 events

Captured keydown and keyup events will appear here, newest first (last 50 kept).