How do I make this animation only occur when the player is actually implementing the new mapping context.

So I’m making a sailing system and everything is working as it should when I’m moving in the boat. Only problem is when I get out of the boat my controller is still connected to the Animation blueprint even though my controller no longer has the Boat mapping context. How would I change it that it only starts when I start controlling the boat and implement the new mapping context on Interact?