JavaScript Key Code 12
12
Key Code Information
event.key
Clear
The value of the key pressed. Accounts for modifiers keys that return CAPS and alternate chars.
event.location
General keys
Some keys exist more than once on your keyboard. This provides the location of the key pressed. Try it with both shifts.
event.code
NumLock
The physical key on the keyboard. Doesn't care if you are holding a modifier like Shift.
event.which
12
Event Dump
{ "key": "Clear", "keyCode": 12, "which": 12, "code": "NumLock", "location": 0, "description": "clear", "unicode": "⌧", "path": "/clear" }
Unicode
⌧