How do I show a "Widget Blueprint" when I press "Escape"?

I made a Widget Blueprint and I want to show it when I press Escape. How do I do that?

Here is a way to Show/Hide your WG:

Event begin play → “create Widget”. Safe the output in a variable. Select your Widget in the node.

Escape → FlipFlop → A: “Add Widget to Viewport”. Use the variable you created previously for the Widget.
B: “Remove from Parent” Same variable here.

Every time you press Esc you add the Widget to the Viewport or remove it, if it´s already there. You should also add the nodes “Set input mode UI (Game at the B part) only” and “Show Mouse Cursor”.

In which blueprint?

In LevelBlueprint or any other blueprint that can recieve inputs like PlayerController or your MainPlayer