Start Animation gets Interrupted

Also, is there a way to exit these animation phases when I press WASD again? (i.e. stops, going to locomotion when WASD pressed)

or stop them? (i.e. starts, going into idle when WASD released)