Input axis value stuck on input mode change

When I open a menu while holding down a movement input button, the character continues to move after I close the menu until I press and release said button

Thanks for help!

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.