F10
121
f10
event.keyCode
121
event.key
F10
event.code
F10
Unicode
n/a
Code Examples
Copy and paste these examples to detect the F10 key in your JavaScript code
Recommended modern approach
// Modern approach (recommended)
document.addEventListener('keydown', (e) => {
if (e.key === 'F10') {
console.log('F10 key pressed!');
// Your code here
}
});Related Keys
Other keys commonly used together or in similar contexts