Open and close a widget with one key?

Ive been trying to make an inventory open with “I” and then once in the inventory close it with “I”.

The problem from what I understand is that when I’m opening the inventory I have the game pause and setting to ui mode only so it wont register the player hitting “I”.

This should help put this inside your Player Controller

What is your game options WB?

It’s a reference to the widget, you can see it being Set after the widget is created. Right clicking the Return Value pin and Promoting does the job here.

Also this method is not applicable if you want to open the widget and give it input exclusivity via UI only Mode.

Thats a Promoted Variable of the Widget so i can reference to remove from parent when i press Esc again after i opened it, this works i have it in my project and have no problems

Also i have a Options Menu for my Main Menu then a Game Options for when im in game they look the same just different buttons are added for In Game