Unpause not working with input action

I am trying to make something in my firstpersoncharacter where it will pause and unpause the game if a condition is true or false. It works for false and opens the menu but it won’t true and when I press escape again it wont close

I figured it out if anyone in the future is wondering. just replaced the disable input with activate and deactivate nodes with the target set to character movement