Enable input back, does not work on menu close button

Hi im new to unreal, im trying to create a menu with some buttons, and here is the code:
image 1- is player controller
image 2- is the widjet

I have two problems, one, if i open the menu (Z) and close it from the button, my controls are still disabled and i have to press Z two times to open it again, it should open in just one click.

the second problem is that, if i try to connect “event on lost focus” in my widget, as soon as i click anywhere the menu closes, including the buttons.

Can anyone help me?
What am i missing guys? srry if it is a noob question.

Best regards and thank you.