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