Press the right or left arrow keys. Avery will switch to the sprite's idle costume as soon as there are no keys pressed.
The question about how to immediately stop an animation and switch to an idle costume sometimes comes up in the Help with Scripts forum.