node-keypress
When a user press a key of the keyboard, an event will be sended to you.
Installation
npm i node-keypress
Example
const { NodeKeyboard } = require("node-keypress")
const keyboard = new NodeKeyboard()
keyboard.onKeypress(function(key) {
console.log(key)
})