How to disable interactions ingame when Inventory is open?

I’m trying to figure out how to make it so when you open your inventory (Pressing “I”) you can’t move around in game, jump, shoot, aim until the inventory is closed (Letting go of “I”).

Is there a more simple way to do this or would I have to setup a branch for every action and connect it to “isInvOpen” variable.

Tried setting the Input mode UI Only to when you press I, but that did nothing.

Can add it to lock if at the end, but then I can’t get out of the inventory after that since no input is allowed.