Free Online JavaScript KeyCode Event Checker & Info
Interactive JavaScript keyboard event inspector. Press any key on your keyboard to instantly see its numeric keyCode, event.key, event.code, modifier states (Ctrl, Alt, Shift, Meta), and copy ready-to-use JavaScript event listener snippets.
Press any key on your keyboard
// JavaScript Keyboard Event Listener
window.addEventListener('keydown', (event) => {
if (event.code === 'Space' || event.key === 'Space') {
console.log('Key pressed:', event.key, 'Code:', event.code, 'KeyCode:', event.keyCode);
}
});Frequently Asked Questions
Similar Utilities
Regex Tester
Test regular expressions in real-time with match highlighting, capture groups, and flag selection. Debug regex patterns instantly.
JWT Decoder
Decode and inspect JSON Web Tokens (JWT). View header, payload, claims, and check token expiration instantly.
UUID Generator
Generate random UUID v4 identifiers instantly. Batch generate multiple UUIDs with one-click copy for databases and APIs.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 cryptographic hashes for any text. Compare hashes for data integrity verification.
Typing Speed Test
Test your typing speed in Words Per Minute (WPM), accuracy percentage, error tracking, and interactive timer options.
JSON Formatter
Beautify, format, and pretty-print minified JSON with proper indentation. Validate JSON syntax and catch errors instantly.