Skip to content

JavaScript key code finder.

Press any key and read what a keydown handler sees: event.key, event.code, the legacy keyCode, the location and the modifiers. Copy a listener for it, or look one up in the table of common keys.

JavaScript key code finder.

Loading the tool…

Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.

Get Pro

How it works

3 steps, no account. It runs in your browser and nothing is uploaded.

  1. Press a key

    Anywhere on the page, or in the capture area to catch Space, the arrows and the slash too.

  2. Read its values

    key, code, keyCode, which, location, modifiers, repeat and composition, each copied with a press.

  3. Copy a listener

    A keydown listener by key or by code, with the modifiers you held.

Pricing

Build it with Pro

The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

Questions and answers

Before you trust the result: what to know about the format, the limits, your data and the tools next to it.

4.9 out of 5 from 150+ developers

Build the product around it

Every block, template and icon, installed by your AI agent in your theme. The tools stay free.

Get Pro