Javascript and Dvorak: Is there a way to get the key pressed rather than the character?
<p>I'm trying to make a webapp with hotkeys that work the same for all keyboard layouts.  I've done it before with other languages, but I haven't been able to find a way with Javascript.  I can only get the character of the key that was pressed, not the key independent of keyboard layout.</p>

<p>In the <a href="https://developer.mozilla.org/en-US/docs/Web/Events/keydown" rel="nofollow noreferrer">MDN Doc for "keydown"</a>, keycode looked promising, but it was not.  </p>

<p>Is there a way to get the key pressed rather than the character?</p>

<p>The best solution I can think of without this is a user layout translation option hidden somewhere in settings, which is fine too.</p>