🔍

⌨️ Keycode & Keyboard Event Detector

Press any key to inspect JavaScript KeyboardEvent properties in real-time, including event.key, event.code, keyCode, and modifier key states. 100% free.

Press Any Key
JavaScript KeyboardEvent Inspector
CtrlShiftAlt / OptionMeta / Cmd ⌘
event.key-
event.code-
event.keyCode (deprecated)-
event.which-
event.location-
event.repeat-
📜 Keypress History Log
Press keys to start logging history...
❓ Frequently Asked Questions

Why is event.keyCode deprecated in modern web development?

event.keyCode is deprecated in modern W3C standards because it varies by operating system and keyboard layout. Modern web apps should use event.key (the character string) or event.code (the physical key position) instead.

What is the difference between event.key and event.code?

event.key represents the printed value or character produced by the keypress (accounting for Shift or layout modifiers), while event.code represents the physical position of the key on a standard QWERTY keyboard.

Can this tool detect special function keys and OS shortcuts?

Yes, it detects function keys (F1-F12), system modifiers (Ctrl, Alt, Meta/Command, Shift), Arrow keys, Esc, Space, and enter keys in real-time.

🗓️ Updated 2026-08-22

Report a tool bug

You Might Also Like