Right mouse button problem with inventory system and camera movement

I’m following this series of videos on making an inventory system, and I’m having a problem with the camera. The problem starts after I close my inventory menu. I still have to hold down right mouse button in order to move the camera around, even after I Set Focus to Game Viewport.

[Here is the video series I’m following, and this is the video where he fixes the issue, but I still seem to have it.][1]

Here is how I toggle the inventory on and off ingame:

And this is how I disable movement and activate menu cursor and functions:

Cheers!
~Sheers

Have you solve this problem? I faced the same one working with dialogue system widget :frowning:

The usual fix would be to set input mode to game only after closing a widget. The game and UI input mode has always been a bit wonky like that.