keecode logokeecode

Dead

161

!

event.keyCode

161

event.key

Dead

event.code

BracketRight

Unicode

n/a

Code Examples

Copy and paste these examples to detect the Dead key in your JavaScript code

Recommended modern approach

// Modern approach (recommended)
document.addEventListener('keydown', (e) => {
  if (e.key === 'Dead') {
    console.log('Dead key pressed!');
    // Your code here
  }
});

Related Keys

Other keys commonly used together or in similar contexts