The features was never documented for nodejs. So, the API was never officially supported by nodejs. You can use this polyfil https://www.npmjs.com/package/keypress which works pretty well. This won't require existing code to be changed.