Home About Contact
Categories
Text Tools 51 Calculators 42 Converters 31 Developer Tools 64 SEO Tools 29 Image Tools 54 Security Tools 13 Social Media 28 Document Tools 54 Utility Tools 67 Health & Fitness 52 Finance Tools 78 Education & Study 84 Audio & Video 29 Printables & Templates 50 Games & Puzzles 30

JavaScript Keycode Finder (Key Event Tester)

Press any key to see its JavaScript event.key, event.code, keyCode, which, location and modifier state – a quick reference for keyboard shortcuts and games.

Developer Tools Free Private
Press any key

History

What is the Keycode Finder?

Building keyboard shortcuts or a game? Press any key (or combination) and instantly see every property of the KeyboardEvent: key, code, the old keyCode/which numbers, location (left/right/numpad) and whether Ctrl, Shift, Alt or Meta were held. Click any value to copy it. On phones, type in the box to see values from the on-screen keyboard.

How to use the Keycode Finder

  1. Click the page (or tap the box on mobile).
  2. Press a key or shortcut.
  3. Copy the property you need.

Use event.key or event.code?

event.key is the character produced (layout-aware, e.g. “a” or “Enter”); event.code is the physical key (e.g. “KeyA”) – best for games.

This Keycode Finder is 100% free, needs no signup and runs privately in your browser – on phone, tablet or computer.

Last updated: · By NodifyTech