How do I get keyboard events in user widget?

This node only give you the key, you then need to apply it with

334095-screenshot-1.jpg

Try: