ß
63
ß / ?
event.keyCode
63
event.key
ß
event.code
Minus
Unicode
n/a
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