Keyboard Event Info

Press any key to see its JavaScript event properties. Click the area below to start capturing keys.

Click here to start capturing keys

About Keyboard Events

This tool captures keydown events in JavaScript and displays various properties associated with the pressed key. It can be helpful for developers to understand how different keys are reported by browsers.

  • event.key: The value of the key pressed (e.g., "a", "Enter", "F5").
  • event.code: The physical key code (e.g., "KeyA", "Enter", "F5"). This is layout-independent.
  • event.keyCode / event.which: Deprecated numerical codes for keys.
  • event.location: Indicates the location of the key on the keyboard (e.g., standard, left/right modifier, numpad).
  • Modifier Keys: Shows if Alt, Ctrl, Meta (Command/Windows key), or Shift were pressed.

Click the designated area above to enable key capture. Clicking outside this area will pause capture to prevent interference with page navigation.