Input axis value stuck on input mode change

Have you tried calling the “Set Input Mode UI Only” node when opening the menu. It is supposed to shift the player input focus to UI instead of the default gameplay interactions.

When you close the menu later, you can call the “Set Input Mode Game Only” to revert back to the gameplay controls.