Embed this tool

Copy the code below and paste it into your website. The iframe loads only the tool — no header, sidebar, footer, or ads.

Off by default: the iframe keeps a fixed height and does not scroll internally; increase the height to fit the tool. Turn on to allow internal scrolling.

The area around the tool blends with your page; the tool card keeps its surface.

The iframe uses width 100% and height 600px. Adjust the height to fit the tool.

JavaScript Keycode Info

Press any key to instantly get its JavaScript event keycode, key name, code value, and modifier status.

?
Press any key to begin...

Standard Keycode Reference

KeykeyCodeCode
Backspace8Backspace
Tab9Tab
Enter13Enter
Shift16ShiftLeft
Control17ControlLeft
Alt18AltLeft
Pause19Pause
CapsLock20CapsLock
Escape27Escape
Space32Space
PageUp33PageUp
PageDown34PageDown
End35End
Home36Home
ArrowLeft37ArrowLeft
ArrowUp38ArrowUp
ArrowRight39ArrowRight
ArrowDown40ArrowDown
Insert45Insert
Delete46Delete
048Digit0
149Digit1
a65KeyA
b66KeyB
z90KeyZ
F1112F1
F12123F12

About

  • Large, clear display of the pressed key numerical KeyCode
  • Detailed table showing event.key, event.code, and event.which
  • Indicators for modifier keys (Shift, Ctrl, Alt, Meta)
  • Searchable cheat sheet table with all standard JavaScript keycodes
  • 100% client-side and immediate

FAQ

Tags: javascriptkeycodekeyboardeventsdeveloper

Related Tools