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