UMG "Inventory"

I’ve just see that and I did that in functions. It is working. but when I press again right botton I can still see mouse but if I press left button the mouse is not visible and I can control player. This is blueprint: