Disable Player Turn when Show Hud

When I press a key I display the Hud (and show mouse cursor) and turn off Movement and when the key is released I turn the Hud off and enable movement which works fine.

The thing is when the player moves the mouse the player turns with the mouse. I added a Set Input Mode UI Only node which stops the player from turning but it also disables the release key so I can’t turn off the Hud menu.

How do I get around this and stop the player from turning?

I haven’t had much luck with those nodes… Seems others have had issues too. Wait and see what replies you get here.
But rather than lose time on it, consider coding around it for now in case the UI behavior must be changed later anyway.
Use a state system etc, stick a bool-gate before the active movement code that you can toggle whenever the UI is active…