Set up a Parallel Process common event like this:
It checks if any of the movement directions are being pressed
if not it turns on stop animation
if yes it turns off stop animation
either way it restarts event processing
and as a parallel process it will work in the background
That should do it for you
If there are errors feel free to post them - quite frankly I wrote this event really sloppily