Keycode & Keyboard Event Inspector

Developer Utilities

Interactive JavaScript keyboard event inspector. Press any physical key to view real-time values for event.key, event.code, event.keyCode, event.which, location, modifier flags (Ctrl, Alt, Shift, Meta), and copyable event listeners.

100% Client-Side
Press any key on your keyboard
Enter
CtrlShiftAlt / OptionMeta / Command
event.keyEnter
Exact character generated
event.codeEnter
Physical keyboard key position
event.keyCode13
Legacy numeric code
event.location0 (Standard)
Key position location

JavaScript Event Listener Code

Zero-Knowledge Privacy Guarantee

This Keycode & Keyboard Event Inspector executes 100% locally in your browser’s JavaScript memory using client-side Web APIs. No inputs, keys, tokens, files, or outputs are ever uploaded to any server or logged in any database.

Key Features & Capabilities

  • Captures event.key, event.code, event.keyCode, event.which, and event.location
  • Detects modifier keys: Ctrl, Alt/Option, Shift, Meta/Command
  • Interactive visual key display card with history log
  • Ready-to-copy window.addEventListener("keydown", ...) code snippets

How to Use This Tool

  1. 1Press any key on your keyboard.
  2. 2View the real-time event telemetry breakdown.
  3. 3Copy the JavaScript event listener code snippet.

Frequently Asked Questions (FAQ)

Yes. Modern web standards recommend using event.key and event.code instead of event.keyCode. This inspector displays both for backward compatibility and modern best practices.

More in Developer Utilities

Explore category