keecode logokeecode

¬

220

logical negation

event.keyCode

220

event.key

¬

event.code

Backslash

Unicode

¬

Code Examples

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

Recommended modern approach

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

Related Keys

Other keys commonly used together or in similar contexts