How do I get keyboard events in user widget?

Thank you!!