Listening for every pressed character?



I have a concept of an application made for Points of Sale built with VB.NET. However, I would like to migrate it to Electron.

Is possible to listen for character and Enter keys por example in Electron without having the focus in application?



I was able to achieve this using Global Shortcuts, however it would cut the functionality of keys for every other application.

If I assign a Global Shortcut to “A” key, it would not let me type A anywhere else.

Any ideas?


I’m looking for this too!