JSFiddle - React, Tailwind, and code Playground
HTML
<input placeholder="Try typing CTRL-A in Firefox" style="width: 200px"/>
JavaScript
$("input").keypress(function (e) {
if (e.which !== 0 && e.charCode !== 0) {
alert(String.fromCharCode(e.keyCode|e.charCode));
}
});