JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<p>
Note: Click in this fiddle html output area first.<br>
Then hit 'ALT + a'
</p>
</body>
JavaScript
document.onkeyup=function(e){
var e = e || window.event; // for IE to cover IEs window object
if(e.altKey && e.which == 65) {
alert('Keyboard shortcut working!');
return false;
}
}