cargo install nj-cli
nj-cli build --release
npm i globalkey
# or
yarn add globalkey
const globalkey = require('globalkey');
globalkey
.start(x => console.log(`Keydown ${x}`), y => console.log(`Keyup ${y}`));
setTimeout(() => globalkey.stop(), 5000)