How do I clear an input axis after I interact with an item that stops the player?

When the action of interacting with the item ends, the input axis continues executing alone and my player continues walking.