Need help with opening and closing Inventory widget

So in my inventory component Blueprint, i set my inventory widget to open when pressing tab but it will lock the game and focus on just the inventory with the cursor and all. The problem I’m having is I can’t seem to find a solution for closing and opening the inventory cause all I can do is just open it and never close it again.
Any help is appreciated, thanks. I’ll post a screenshot of the blueprint attached to my player character.