Nowadays solution is easy:
- In Widget DESIGNER select root element (same as Widget name) and in Details window set it “Is Focusable”
- In Widget GRAPH Override function OnKeyDown in a way like
- If Widget has been created in a common way, Esc will show menu and close it back