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