How can I listen for two keydown events simultaneously, in the most idomatic way possible, without any third party library or framework?
Example code (not working):
myFile.js
handleKeyDown(e) {
switch (e.keyCode) {
case 32 && 39: { // SPACE + RightArrow
e.preventDefault();
console.log(e)
}
}
}