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
Vanilla javascript + Alert:
document.addEventListener('keypress', function(e) { alert("Key: " + e.code + ", Code: " + e.charCode) });
Vanilla javascript + console:
document.addEventListener('keypress', function(e) { console.log("Key: " + e.code + ", Code: " + e.charCode) });