Get to know MDN better
The following tables show what code values are used for each native scancode or virtual keycode on major platforms. The reason is that some browsers choose to interpret physical keys differently, there are some differences in which keys map to which codes. These tables show those variations when known.
This table shows the Windows scan codes representing keys and the KeyboardEvent.code values which correspond to those hardware keys. Only keys which generate scan codes on Windows are listed.
In the cells, "(❌ Missing)" means that this code value cannot be detected on this browser; "(⚠️ Not the same on xyz)" means that this string represents a different code value on the browser xyz and that special care has to be done when using it.
|
"Unidentified" |
"" |
| "Escape" | "Escape" |
| "Digit1" | "Digit1" |
| "Digit2" | "Digit2" |
| "Digit3" | "Digit3" |
| "Digit4" | "Digit4" |
| "Digit5" | "Digit5" |
| "Digit6" | "Digit6" |
| "Digit7" | "Digit7" |
| "Digit8" | "Digit8" |
| "Digit9" | "Digit9" |
| "Digit0" | "Digit0" |
| "Minus" | "Minus" |
| "Equal" | "Equal" |
| "Backspace" | "Backspace" |
| "Tab" | "Tab" |
| "KeyQ" | "KeyQ" |
| "KeyW" | "KeyW" |
| "KeyE" | "KeyE" |
| "KeyR" | "KeyR" |
| "KeyT" | "KeyT" |
| "KeyY" | "KeyY" |
| "KeyU" | "KeyU" |
| "KeyI" | "KeyI" |
| "KeyO" | "KeyO" |
| "KeyP" | "KeyP" |
| "BracketLeft" | "BracketLeft" |
| "BracketRight" | "BracketRight" |
| "Enter" | "Enter" |
| "ControlLeft" | "ControlLeft" |
| "KeyA" | "KeyA" |
| "KeyS" | "KeyS" |
| "KeyD" | "KeyD" |
| "KeyF" | "KeyF" |
| "KeyG" | "KeyG" |
| "KeyH" | "KeyH" |
| "KeyJ" | "KeyJ" |
| "KeyK" | "KeyK" |
| "KeyL" | "KeyL" |
| "Semicolon" | "Semicolon" |
| "Quote" | "Quote" |
| "Backquote" | "Backquote" |
| "ShiftLeft" | "ShiftLeft" |
| "Backslash" | "Backslash" |
| "KeyZ" | "KeyZ" |
| "KeyX" | "KeyX" |
| "KeyC" | "KeyC" |
| "KeyV" | "KeyV" |
| "KeyB" | "KeyB" |
| "KeyN" | "KeyN" |
| "KeyM" | "KeyM" |
| "Comma" | "Comma" |
| "Period" | "Period" |
| "Slash" | "Slash" |
| "ShiftRight" | "ShiftRight" |
| "NumpadMultiply" | "NumpadMultiply" |
| "AltLeft" | "AltLeft" |
| "Space" | "Space" |
| "CapsLock" | "CapsLock" |
| "F1" | "F1" |
| "F2" | "F2" |
| "F3" | "F3" |
| "F4" | "F4" |
| "F5" | "F5" |
| "F6" | "F6" |
| "F7" | "F7" |
| "F8" | "F8" |
| "F9" | "F9" |
| "F10" | "F10" |
| "Pause" | "Pause" |
| "ScrollLock" | "ScrollLock" |
| "Numpad7" | "Numpad7" |
| "Numpad8" | "Numpad8" |
| "Numpad9" | "Numpad9" |
| "NumpadSubtract" | "NumpadSubtract" |
| "Numpad4" | "Numpad4" |
| "Numpad5" | "Numpad5" |
| "Numpad6" | "Numpad6" |
| "NumpadAdd" | "NumpadAdd" |
| "Numpad1" | "Numpad1" |
| "Numpad2" | "Numpad2" |
| "Numpad3" | "Numpad3" |
| "Numpad0" | "Numpad0" |
| "NumpadDecimal" | "NumpadDecimal" |
| "PrintScreen" (⚠️ Not the same on Chrome) | "" (❌ Missing) |
| "Unidentified" | "" |
| "IntlBackslash" | "IntlBackslash" |
| "F11" | "F11" |
| "F12" | "F12" |
| "NumpadEqual" | "NumpadEqual" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "Unidentified" | "" (was "F13" prior to Chrome 48) |
| "Unidentified" | "" (was "F14" prior to Chrome 48) |
| "Unidentified" | "" (was "F15" prior to Chrome 48) |
| "Unidentified" | "" |
| "Unidentified" | "" |
| "Unidentified" | "" |
| "Unidentified" | "" |
| "Unidentified" | "" |
| "Unidentified" | "" (was "F16" prior to Chrome 48) |
| "F13" | "F13" (was "F17" prior to Chrome 48) |
| "F14" | "F14" (was "F18" prior to Chrome 48) |
| "F15" | "F15" (was "F19" prior to Chrome 48) |
| "F16" | "F16" (was "F20" prior to Chrome 48) |
| "F17" | "F17" (was "F21" prior to Chrome 48) |
| "F18" | "F18" (was "F22" prior to Chrome 48) |
| "F19" | "F19" (was "F23" prior to Chrome 48) |
| "F20" | "F20" (was "F24" prior to Chrome 48) |
| "F21" | "F21" (was "" prior to Chrome 48) |
| "F22" | "F22" (was "" prior to Chrome 48) |
| "F23" | "F23" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "KanaMode" | "KanaMode" (was "" prior to Chrome 48) |
| "Lang2" | "Lang2" (was "" prior to Chrome 48) |
| "Lang1" | "Lang1" (was "" prior to Chrome 48) |
| "IntlRo" | "IntlRo" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "F24" | "F24" (was "" prior to Chrome 48) |
| "Unidentified" (❌ Missing) | "Lang4" (was "" prior to Chrome 48) (⚠️ Not the same on Firefox) |
| "Unidentified" (❌ Missing) | "Lang3" (was "" prior to Chrome 48) (⚠️ Not the same on Firefox) |
| "Convert" | "Convert" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "NonConvert" | "NonConvert" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "IntlYen" | "IntlYen" |
| "NumpadComma" | "NumpadComma" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "Undo" (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "" (❌ Missing) | "Paste" (⚠️ Not the same on Firefox) |
| "" | "" |
| "MediaTrackPrevious" | "MediaTrackPrevious" |
| "" | "" |
| "Unidentified" (❌ Missing) | "Cut" (⚠️ Not the same on Firefox) |
| "Unidentified" (❌ Missing) | "Copy" (⚠️ Not the same on Firefox) |
| "MediaTrackNext" | "MediaTrackNext" |
| "Unidentified" | "" |
| "NumpadEnter" | "NumpadEnter" |
| "ControlRight" | "ControlRight" |
| "Unidentified" | "" (was "LaunchMail" prior to Chrome 48) |
| "Unidentified" | "" |
| "AudioVolumeMute" | "AudioVolumeMute" |
| "LaunchApp2" | "LaunchApp2" (was "" prior to Chrome 48) |
| "MediaPlayPause" | "MediaPlayPause" |
| "Unidentified" | "" |
| "MediaStop" | "MediaStop" |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "Eject" (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "VolumeDown" (⚠️ Not the same on Chrome) | "AudioVolumeDown" (was "VolumeDown" prior to Chrome 52) (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "VolumeUp" (⚠️ Not the same on Chrome) | "AudioVolumeUp" (was "VolumeUp" prior to Chrome 52) (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "BrowserHome" | "BrowserHome" |
| "Unidentified" | "" |
| "NumpadDivide" | "NumpadDivide" |
| "Unidentified" | "" |
| "PrintScreen" | "PrintScreen" |
| "AltRight" | "AltRight" |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "Help" (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "NumLock" | "NumLock" |
| "Pause" | "Pause" |
| "Home" | "Home" |
| "ArrowUp" | "ArrowUp" |
| "PageUp" | "PageUp" |
| "Unidentified" | "" |
| "ArrowLeft" | "ArrowLeft" |
| "Unidentified" | "" |
| "ArrowRight" | "ArrowRight" |
| "Unidentified" | "" |
| "End" | "End" |
| "ArrowDown" | "ArrowDown" |
| "PageDown" | "PageDown" |
| "Insert" | "Insert" |
| "Delete" | "Delete" |
| "Unidentified" | "" |
| "MetaLeft" (was "OSLeft" prior to Firefox 118) | "MetaLeft" (was "OSLeft" prior to Chrome 52) |
| "MetaRight" (was "OSRight" prior to Firefox 118) | "MetaRight" (was "OSRight" prior to Chrome 52) |
| "ContextMenu" | "ContextMenu" |
| "Power" | "Power" (was "" prior to Chrome 48) |
| "Unidentified" (❌ Missing) | "Sleep" (was "" prior to Chrome 48) (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "WakeUp" (was "" prior to Chrome 48) (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "BrowserSearch" | "BrowserSearch" |
| "BrowserFavorites" | "BrowserFavorites" |
| "BrowserRefresh" | "BrowserRefresh" |
| "BrowserStop" | "BrowserStop" |
| "BrowserForward" | "BrowserForward" |
| "BrowserBack" | "BrowserBack" |
| "LaunchApp1" | "LaunchApp1" (was "" prior to Chrome 48) |
| "LaunchMail" | "LaunchMail" (was "" prior to Chrome 48) |
| "MediaSelect" | "MediaSelect" (was "" prior to Chrome 48) |
| "Unidentified" | "" |
| "Lang2" (⚠️ Not the same on Chrome) | "" (❌ Missing) |
| "Lang1" (⚠️ Not the same on Chrome) | "" (❌ Missing) |
On macOS, it's hard to get scancode or something which can distinguish a physical key from a key event. Therefore, Firefox always maps code value from the virtual keycode.
In the cells,
| "KeyA" | "KeyA" |
| "KeyS" | "KeyS" |
| "KeyD" | "KeyD" |
| "KeyF" | "KeyF" |
| "KeyH" | "KeyH" |
| "KeyG" | "KeyG" |
| "KeyZ" | "KeyZ" |
| "KeyX" | "KeyX" |
| "KeyC" | "KeyC" |
| "KeyV" | "KeyV" |
| "IntlBackslash" | "IntlBackslash" |
| "KeyB" | "KeyB" |
| "KeyQ" | "KeyQ" |
| "KeyW" | "KeyW" |
| "KeyE" | "KeyE" |
| "KeyR" | "KeyR" |
| "KeyY" | "KeyY" |
| "KeyT" | "KeyT" |
| "Digit1" | "Digit1" |
| "Digit2" | "Digit2" |
| "Digit3" | "Digit3" |
| "Digit4" | "Digit4" |
| "Digit6" | "Digit6" |
| "Digit5" | "Digit5" |
| "Equal" | "Equal" |
| "Digit9" | "Digit9" |
| "Digit7" | "Digit7" |
| "Minus" | "Minus" |
| "Digit8" | "Digit8" |
| "Digit0" | "Digit0" |
| "BracketRight" | "BracketRight" |
| "KeyO" | "KeyO" |
| "KeyU" | "KeyU" |
| "BracketLeft" | "BracketLeft" |
| "KeyI" | "KeyI" |
| "KeyP" | "KeyP" |
| "Enter" | "Enter" |
| "KeyL" | "KeyL" |
| "KeyJ" | "KeyJ" |
| "Quote" | "Quote" |
| "KeyK" | "KeyK" |
| "Semicolon" | "Semicolon" |
| "Backslash" | "Backslash" |
| "Comma" | "Comma" |
| "Slash" | "Slash" |
| "KeyN" | "KeyN" |
| "KeyM" | "KeyM" |
| "Period" | "Period" |
| "Tab" | "Tab" |
| "Space" | "Space" |
| "Backquote" | "Backquote" |
| "Backspace" | "Backspace" |
| "NumpadEnter" (⚠️ Same string for 0x4C) (⚠️ Not the same on Chromium) | "" (❌ Missing) |
| "Escape" | "Escape" |
| "MetaRight" (was "OSRight" prior to Firefox 118) | "MetaRight" (was "OSRight" prior to Chromium 52) |
| "MetaLeft" (was "OSLeft" prior to Firefox 118) | "MetaLeft" (was "OSLeft" prior to Chromium 52) |
| "ShiftLeft" | "ShiftLeft" |
| "CapsLock" | "CapsLock" |
| "AltLeft" | "AltLeft" |
| "ControlLeft" | "ControlLeft" |
| "ShiftRight" | "ShiftRight" |
| "AltRight" | "AltRight" |
| "ControlRight" | "ControlRight" |
| "Fn" (⚠️ No events fired actually) | "" (❌ Missing) (⚠️ No events fired actually) |
| "F17" | "F17" |
| "NumpadDecimal" | "NumpadDecimal" |
| "NumpadMultiply" | "NumpadMultiply" |
| "NumpadAdd" | "NumpadAdd" |
| "NumLock" | "NumLock" |
| "VolumeUp" (⚠️ Not the same on Chromium) | "AudioVolumeUp" (was "VolumeUp" prior to Chromium 1) (⚠️ Not the same on Firefox) |
| "VolumeDown" (⚠️ Not the same on Chromium) | "AudioVolumeDown" (was "VolumeDown" prior to Chromium 52) (⚠️ Not the same on Firefox) |
| "VolumeMute" (⚠️ Not the same on Chromium) | "AudioVolumeMute" (was "VolumeMute" prior to Chromium 52) (⚠️ Not the same on Firefox) |
| "NumpadDivide" | "NumpadDivide" |
| "NumpadEnter" | "NumpadEnter" |
| "NumpadSubtract" | "NumpadSubtract" |
| "F18" | "F18" |
| "F19" | "F19" |
| "NumpadEqual" | "NumpadEqual" |
| "Numpad0" | "Numpad0" |
| "Numpad1" | "Numpad1" |
| "Numpad2" | "Numpad2" |
| "Numpad3" | "Numpad3" |
| "Numpad4" | "Numpad4" |
| "Numpad5" | "Numpad5" |
| "Numpad6" | "Numpad6" |
| "Numpad7" | "Numpad7" |
| "F20" | "F20" |
| "Numpad8" | "Numpad8" |
| "Numpad9" | "Numpad9" |
| "IntlYen" | "IntlYen" |
| "IntlRo" | "IntlRo" |
| "NumpadComma" | "NumpadComma" |
| "F5" | "F5" |
| "F6" | "F6" |
| "F7" | "F7" |
| "F3" | "F3" |
| "F8" | "F8" |
| "F9" | "F9" |
| "Lang2" | "Lang2" (was "" prior to Chromium 82) (⚠️ No events fired actually) |
| "F11" | "F11" |
| "Lang1" | "Lang1" (was "KanaMode" prior to Chromium 82) (⚠️ No events fired actually) |
| "F13" | "F13" |
| "F16" | "F16" |
| "F14" | "F14" |
| "F10" | "F10" |
| "ContextMenu" | "ContextMenu" |
| "F12" | "F12" |
| "F15" | "F15" |
| "Help" (⚠️ Not the same on Chromium) | "Insert" (⚠️ Not the same on Firefox) |
| "Home" | "Home" |
| "PageUp" | "PageUp" |
| "Delete" | "Delete" |
| "F4" | "F4" |
| "End" | "End" |
| "F2" | "F2" |
| "PageDown" | "PageDown" |
| "F1" | "F1" |
| "ArrowLeft" | "ArrowLeft" |
| "ArrowRight" | "ArrowRight" |
| "ArrowDown" | "ArrowDown" |
| "ArrowUp" | "ArrowUp" |
Note that X has too many keys and some of them are not testable with usual keyboard. So, following table is created from source code which maps from scancode to code value.
In the cells, "(❌ Missing)" means that this code value cannot be detected on this browser.
| "Escape" | "Escape" |
| "Digit1" | "Digit1" |
| "Digit2" | "Digit2" |
| "Digit3" | "Digit3" |
| "Digit4" | "Digit4" |
| "Digit5" | "Digit5" |
| "Digit6" | "Digit6" |
| "Digit7" | "Digit7" |
| "Digit8" | "Digit8" |
| "Digit9" | "Digit9" |
| "Digit0" | "Digit0" |
| "Minus" | "Minus" |
| "Equal" | "Equal" |
| "Backspace" | "Backspace" |
| "Tab" | "Tab" |
| "KeyQ" | "KeyQ" |
| "KeyW" | "KeyW" |
| "KeyE" | "KeyE" |
| "KeyR" | "KeyR" |
| "KeyT" | "KeyT" |
| "KeyY" | "KeyY" |
| "KeyU" | "KeyU" |
| "KeyI" | "KeyI" |
| "KeyO" | "KeyO" |
| "KeyP" | "KeyP" |
| "BracketLeft" | "BracketLeft" |
| "BracketRight" | "BracketRight" |
| "Enter" | "Enter" |
| "ControlLeft" | "ControlLeft" |
| "KeyA" | "KeyA" |
| "KeyS" | "KeyS" |
| "KeyD" | "KeyD" |
| "KeyF" | "KeyF" |
| "KeyG" | "KeyG" |
| "KeyH" | "KeyH" |
| "KeyJ" | "KeyJ" |
| "KeyK" | "KeyK" |
| "KeyL" | "KeyL" |
| "Semicolon" | "Semicolon" |
| "Quote" | "Quote" |
| "Backquote" | "Backquote" |
| "ShiftLeft" | "ShiftLeft" |
| "Backslash" | "Backslash" |
| "KeyZ" | "KeyZ" |
| "KeyX" | "KeyX" |
| "KeyC" | "KeyC" |
| "KeyV" | "KeyV" |
| "KeyB" | "KeyB" |
| "KeyN" | "KeyN" |
| "KeyM" | "KeyM" |
| "Comma" | "Comma" |
| "Period" | "Period" |
| "Slash" | "Slash" |
| "ShiftRight" | "ShiftRight" |
| "NumpadMultiply" | "NumpadMultiply" |
| "AltLeft" | "AltLeft" |
| "Space" | "Space" |
| "CapsLock" | "CapsLock" |
| "F1" | "F1" |
| "F2" | "F2" |
| "F3" | "F3" |
| "F4" | "F4" |
| "F5" | "F5" |
| "F6" | "F6" |
| "F7" | "F7" |
| "F8" | "F8" |
| "F9" | "F9" |
| "F10" | "F10" |
| "NumLock" | "NumLock" |
| "ScrollLock" | "ScrollLock" |
| "Numpad7" | "Numpad7" |
| "Numpad8" | "Numpad8" |
| "Numpad9" | "Numpad9" |
| "NumpadSubtract" | "NumpadSubtract" |
| "Numpad4" | "Numpad4" |
| "Numpad5" | "Numpad5" |
| "Numpad6" | "Numpad6" |
| "NumpadAdd" | "NumpadAdd" |
| "Numpad1" | "Numpad1" |
| "Numpad2" | "Numpad2" |
| "Numpad3" | "Numpad3" |
| "Numpad0" | "Numpad0" |
| "NumpadDecimal" | "NumpadDecimal" |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "Lang5" (was "" prior to Chromium 48) (⚠️ Not the same on Firefox) |
| "IntlBackslash" | "IntlBackslash" |
| "F11" | "F11" |
| "F12" | "F12" |
| "IntlRo" | "IntlRo" |
| "Unidentified" (❌ Missing) | "Lang3" (⚠️ Not the same on Firefox) |
| "Unidentified" (❌ Missing) | "Lang4" (⚠️ Not the same on Firefox) |
| "Convert" | "Convert" |
| "KanaMode" | "KanaMode" |
| "NonConvert" | "NonConvert" |
| "Unidentified" | "" |
| "NumpadEnter" | "NumpadEnter" |
| "ControlRight" | "ControlRight" |
| "NumpadDivide" | "NumpadDivide" |
| "PrintScreen" | "PrintScreen" |
| "AltRight" | "AltRight" |
| "Unidentified" | "" |
| "Home" | "Home" |
| "ArrowUp" | "ArrowUp" |
| "PageUp" | "PageUp" |
| "ArrowLeft" | "ArrowLeft" |
| "ArrowRight" | "ArrowRight" |
| "End" | "End" |
| "ArrowDown" | "ArrowDown" |
| "PageDown" | "PageDown" |
| "Insert" | "Insert" |
| "Delete" | "Delete" |
| "Unidentified" | "" |
| "VolumeMute" (⚠️ Not the same on Chromium) | "AudioVolumeMute" (was "VolumeMute" prior to Chromium 52) (⚠️ Not the same on Firefox) |
| "VolumeDown" (⚠️ Not the same on Chromium) | "AudioVolumeDown" (was "VolumeDown" prior to Chromium 52) (⚠️ Not the same on Firefox) |
| "VolumeUp" (⚠️ Not the same on Chromium) | "AudioVolumeUp" (was "VolumeUp" prior to Chromium 52) (⚠️ Not the same on Firefox) |
| "Unidentified" (❌ Missing) | "Power" (⚠️ Not the same on Firefox) |
| "NumpadEqual" | "NumpadEqual" |
| "Unidentified" | "" |
| "Pause" | "Pause" |
| "Unidentified" | "" |
| "NumpadComma" | "NumpadComma" |
| "Lang1" | "Lang1" |
| "Lang2" | "Lang2" |
| "IntlYen" | "IntlYen" |
| "MetaLeft" (was "OSLeft" prior to Firefox 118) | "MetaLeft" (was "OSLeft" prior to Chromium 52) |
| "MetaRight" (was "OSRight" prior to Firefox 118) | "MetaRight" (was "OSRight" prior to Chromium 52) |
| "ContextMenu" | "ContextMenu" |
| "BrowserStop" | "BrowserStop" (was "Abort" prior to Chromium 48) |
| "Again" | "Again" |
| "Props" (⚠️ Not the same on Chromium) | "" (❌ Missing) |
| "Undo" | "Undo" |
| "Select" | "Select" (was "" prior to Chromium 48) |
| "Copy" | "Copy" |
| "Open" | "Open" (was "" prior to Chromium 48) |
| "Paste" | "Paste" |
| "Find" | "Find" |
| "Cut" | "Cut" |
| "Help" | "Help" |
| "Unidentified" | "" |
| "LaunchApp2" | "LaunchApp2" |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "Sleep" (⚠️ Not the same on Firefox) |
| "WakeUp" | "WakeUp" |
| "LaunchApp1" | "LaunchApp1" (was "" prior to Chromium 48) |
| "Unidentified" | "" |
| "LaunchMail" | "LaunchMail" (was "" prior to Chromium 51) |
| "BrowserFavorites" | "BrowserFavorites" |
| "Unidentified" | "" |
| "BrowserBack" | "BrowserBack" |
| "BrowserForward" | "BrowserForward" |
| "Unidentified" | "" |
| "Eject" | "Eject" (was "" prior to Chromium 48) |
| "Unidentified" | "" |
| "MediaTrackNext" | "MediaTrackNext" (was "" prior to Chromium 48) |
| "MediaPlayPause" | "MediaPlayPause" (was "" prior to Chromium 48) |
| "MediaTrackPrevious" | "MediaTrackPrevious" (was "" prior to Chromium 48) |
| "MediaStop" | "MediaStop" (was "" prior to Chromium 48) |
| "Unidentified" | "" |
| "MediaSelect" | "MediaSelect" (was "" prior to Chromium 48) |
| "BrowserHome" | "BrowserHome" (was "" prior to Chromium 48) |
| "BrowserRefresh" | "BrowserRefresh" |
| "Unidentified" | "" |
| "Unidentified" (❌ Missing) | "NumpadParenLeft" (⚠️ Not the same on Firefox) |
| "Unidentified" (❌ Missing) | "NumpadParenRight" (⚠️ Not the same on Firefox) |
| "Unidentified" | "" |
| "F13" | "F13" |
| "F14" | "F14" |
| "F15" | "F15" |
| "F16" | "F16" |
| "F17" | "F17" |
| "F18" | "F18" |
| "F19" | "F19" |
| "F20" | "F20" |
| "F21" | "F21" |
| "F22" | "F22" |
| "F23" | "F23" |
| "F24" | "F24" |
|
"Unidentified" |
"" |
| "BrowserSearch" (⚠️ Not the same on Chromium) | "BrowserSearch" (was "BrightnessUp" prior to Chromium 48) |
| "Escape" |
| "Digit1" |
| "Digit2" |
| "Digit3" |
| "Digit4" |
| "Digit5" |
| "Digit6" |
| "Digit7" |
| "Digit8" |
| "Digit9" |
| "Digit0" |
| "Minus" |
| "Equal" |
| "Backspace" |
| "Tab" |
| "KeyQ" |
| "KeyW" |
| "KeyE" |
| "KeyR" |
| "KeyT" |
| "KeyY" |
| "KeyU" |
| "KeyI" |
| "KeyO" |
| "KeyP" |
| "BracketLeft" |
| "BracketRight" |
| "Enter" |
| "ControlLeft" |
| "KeyA" |
| "KeyS" |
| "KeyD" |
| "KeyF" |
| "KeyG" |
| "KeyH" |
| "KeyJ" |
| "KeyK" |
| "KeyL" |
| "Semicolon" |
| "Quote" |
| "Backquote" |
| "ShiftLeft" |
| "Backslash" |
| "KeyZ" |
| "KeyX" |
| "KeyC" |
| "KeyV" |
| "KeyB" |
| "KeyN" |
| "KeyM" |
| "Comma" |
| "Period" |
| "Slash" |
| "ShiftRight" |
| "NumpadMultiply" |
| "AltLeft" |
| "Space" |
| "CapsLock" |
| "F1" |
| "F2" |
| "F3" |
| "F4" |
| "F5" |
| "F6" |
| "F7" |
| "F8" |
| "F9" |
| "F10" |
| "NumLock" |
| "ScrollLock" |
| "Numpad7" |
| "Numpad8" |
| "Numpad9" |
| "NumpadSubtract" |
| "Numpad4" |
| "Numpad5" |
| "Numpad6" |
| "NumpadAdd" |
| "Numpad1" |
| "Numpad2" |
| "Numpad3" |
| "Numpad0" |
| "NumpadDecimal" |
|
"Unidentified" |
| "IntlBackslash" |
| "F11" |
| "F12" |
| "IntlRo" |
|
"Unidentified" |
| "Convert" |
| "KanaMode" |
| "NonConvert" |
|
"Unidentified" |
| "NumpadEnter" |
| "ControlRight" |
| "NumpadDivide" |
| "PrintScreen" |
| "AltRight" |
|
"Unidentified" |
| "Home" |
| "ArrowUp" |
| "PageUp" |
| "ArrowLeft" |
| "ArrowRight" |
| "End" |
| "ArrowDown" |
| "PageDown" |
| "Insert" |
| "Delete" |
|
"Unidentified" |
|
"VolumeMute" |
|
"VolumeDown" |
|
"VolumeUp" |
| "Power" |
| "NumpadEqual" |
|
"Unidentified" |
| "Pause" |
|
"Unidentified" |
| "NumpadComma" |
| "Lang1" |
| "Lang2" |
| "IntlYen" |
|
"MetaLeft" (was "OSLeft" prior to Firefox 118) |
|
"MetaRight" (was "OSRight" prior to Firefox 118) |
| "ContextMenu" |
| "BrowserStop" |
| "Again" |
| "Props" |
| "Undo" |
| "Select" |
| "Copy" |
| "Open" |
| "Paste" |
| "Find" |
| "Cut" |
| "Help" |
|
"Unidentified" |
| "Sleep" |
| "WakeUp" |
| "LaunchApp1" |
|
"Unidentified" |
| "BrowserFavorites" |
|
"Unidentified" |
| "BrowserBack" |
| "BrowserForward" |
|
"Unidentified" |
| "Eject" |
|
"Unidentified" |
| "MediaTrackNext" |
| "MediaPlayPause" |
| "MediaTrackPrevious" |
| "MediaStop" |
|
"Unidentified" |
| "BrowserRefresh" |
| "Unidentified" |
| "F13" |
| "F14" |
| "F15" |
| "F16" |
| "F17" |
| "F18" |
| "F19" |
| "F20" |
| "F21" |
| "F22" |
| "F23" |
| "F24" |
|
"Unidentified" |
| "BrowserSearch" |
|
"Unidentified" |
| "Fn" |
This page was last modified on Aug 13, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.