JSFiddle - React, Tailwind, and code Playground
JavaScript
function addJS(jsCode) {
var s = document.createElement('script');
s.type = 'text/javascript';
s.innerText = jsCode;
document.getElementsByTagName('head')[0].appendChild(s);
}
var txt = "shortcut.add('',function() {Send('1')},{'type':'keydown', 'keycode':97});";
txt += "shortcut.add('',function() {Send('2')},{'type':'keydown', 'keycode':100});";
txt += "shortcut.add('',function() {Send('3')},{'type':'keydown', 'keycode':103});";
addJS( txt );