Player gets stuck moving forward after re-enabling movement input

I have a system where the player interacts with an object, then it locks the player’s movement by using “set ignore move input,” then it opens an interface and enables the mouse, then afterwards, it disables the mouse, closes the interface, and enables the movement again with “set ignore move input” set to false this time. But for some reason, after the node is called, the player starts moving forwards without me touching anything. Does anyone know why this is happening or how to fix it? I tried using nodes like “stop movement” but they didn’t change anything.

Thanks in advance!