keecode logokeecode

á

65

a acute

event.keyCode

65

event.key

á

event.code

KeyA

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