Need to calculate your BMI? It's a helpful starting point for understanding your health, but remember it's just one metric of many.
Press any key on your keyboard
Debug your keyboard. Press any key to see its JavaScript event codes (`key`, `code`, `which`). Essential for developers building games, accessibility features, or custom shortcuts.
JavaScript handles keyboard input through events. Knowing the exact `code` (physical key) vs `key` (character value) is crucial. For example, 'Z' on a US keyboard is different from 'Z' on a German keyboard—this tool shows you exactly what the browser sees.
It adds a global `keydown` event listener to the window and simply prints out the event object's properties: `e.key`, `e.code`, `e.which`, etc.
`key` is the character generated (e.g., 'a' or 'A'). `code` is the physical button pressed (e.g., 'KeyA'). `code` doesn't change with keyboard layout.
It was inconsistent across browsers. `key` and `code` are the modern standards.
Yes, it will show the 'repeat' property as true if you hold a key down.
All calculations and data processing for this tool are performed locally in your browser. UtilToolkits does not send any of your data to an external server, ensuring your information remains private and secure.