Key code finder
⌨
Press any key.
Questions
key or code: which should I use?
event.key is the character or name (a, A, Enter) and follows the keyboard layout. event.code is the physical key (KeyA) and does not.
Is keyCode still OK?
keyCode and which are deprecated but still work everywhere. Use key or code in new code.
Can I copy a value?
Yes. Click any box to copy its value.

