freeze and redirect?

trying to get an actor (traveling motion in one direction) to freeze for (i.e. 5 seconds) once mouse is inside or touched, waiting for input, and then go in a specified direction with input.
the way i'm doing it for some reason the actor only freezes if touched, and keeps going in their prior direction once i let the pointer off of them. need a fresh opinion thanks!
the way i'm doing it for some reason the actor only freezes if touched, and keeps going in their prior direction once i let the pointer off of them. need a fresh opinion thanks!