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