What\'s the easiest way to find the keycode for a specific key press?
Are there any good online tools that just capture any key event and show the code?
I wa
If you are looking for an online tool, https://keyjs.dev is probably the best option available:
By default, it displays e.key, e.code, e.which and e.keyCode for the keydown event.
If you need more than that, you can expand it and you will get a table with more properties for keydown, keypress and keyup.
If you still need more than that, open DevTools and you will see all the keys you press are logged to the console in a table-like style. Just click the row you are interested in to expand it and see the whole event object.
Disclaimer: I'm the author.