title: Javascript keydown event not working when three keys that form a triangle are pressed
body: <p>I am currently trying to detect which keys are currently pressed at any given time. Like others have said, I used the <code>keydown</code> and <code>keyup</code> events and log the <code>keyCode</code>s to an object. I also added <code>console.log</code> statements in my <code>keydown</code> and <code>keyup</code> listeners. Currently, everything works well <em>except</em> when three keys are pressed simultaneously in a triangular shape (on a QWERTY keyboard: <code>[&quot;T&quot;, &quot;G&quot;, &quot;Y&quot;]</code>, <code>[&quot;4&quot;, &quot;5&quot;, &quot;R&quot;]</code>, etc.), the keys don't log as expected: either one or two logs, or none of them logs. I wonder if there's a way to get around whatever limitation is causing this?</p>