How to make a toggle-able UI?

could you please provide a blueprint detailing this information. I’m trying to make it to where the widget is created when the game starts ( in the event graph of my HeroCharacter) and when I press the I key and inventory is opened, pressing the key a second time should close the inventory. I’m trying to follow the instructions you’ve provided but i cant seem to get it to work. Visuals would help me greatly, thank you so much in avance!