Reference

Keyboard Key Codes

Live

Inspect KeyboardEvent key, code, location, and modifiers in a focused test surface.

About Keyboard Key Codes

Inspect KeyboardEvent key, code, location, and modifiers in a focused test surface. Enter search, key group in a purpose-built keyboard tester explorer. The page searches a versioned local reference dataset and displays matching records without sending the query to a server. Results include copy controls, responsive filters, clear empty states, dataset version details, and the cited source context. The live inspector listens only while its labeled test surface is focused. Browser, operating-system, keyboard layout, assistive technology, and remapping can affect events. Processing stays in your browser and search terms are not sent to UtilityPages.

Explore Keyboard Key Codes

Workspace

Reference desk

Use the fields below to narrow the local reference material to the details you need.

This workspace updates as you edit.

Search by key name, code, or category.

Choose or enter key group to refine the reference.

Keyboard Key Codes results

Search or choose a filter to explore the reference.

About this Keyboard Key Codes

The page searches a versioned local reference dataset and displays matching records without sending the query to a server.

How it works

The page searches a versioned local reference dataset and displays matching records without sending the query to a server. The live inspector listens only while its labeled test surface is focused. Browser, operating-system, keyboard layout, assistive technology, and remapping can affect events.

Examples

Keyboard Key Codes example

Example input
{
    "query": "Enter",
    "group": "all"
}
Expected result
{
    "summary": "2 matching records for “Enter”",
    "match_count": 2,
    "results": [
        {
            "key": "Enter",
            "code": "Enter",
            "group": "typing",
            "location": "0",
            "typical_meaning": "Confirm or insert line break"
        },
        {
            "key": "Enter",
            "code": "NumpadEnter",
            "group": "numpad",
            "location": "3",
            "typical_meaning": "Numeric keypad Enter"
        }
    ]
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. UI Events KeyboardEvent code values

Frequently asked questions

What does the Keyboard Key Codes include?

It includes a reviewed, locally bundled keyboard key codes dataset with searchable fields and relevant filters.

How do I use the Keyboard Key Codes?

Enter search, key group, then inspect or copy the matching reference values. Results update in the browser.

Where does the Keyboard Key Codes data come from?

The page cites World Wide Web Consortium and displays the bundled dataset version and review date.

Is the Keyboard Key Codes complete and current?

The live inspector listens only while its labeled test surface is focused. Browser, operating-system, keyboard layout, assistive technology, and remapping can affect events.