DevToolsKit

Keycode Info

Press a key, see every event property.

Press any key

This page listens for keydown events while it has focus.

event.key is what the key produces (layout-aware, so it changes with Shift/AltGr); event.code is the physical key position (layout-independent — right for game controls). keyCode and which are shown for legacy code only; don't use them in new work.

About this tool

Press any key to inspect its KeyboardEvent: key, code, keyCode, which, location and modifiers — and learn when to use key versus code.

It runs completely in your browser — no input is sent anywhere, and this page loads no ads or third-party scripts, so it is safe to use with data you would not paste into a hosted service.

Related tools