animation prob

the player is animating idle if not move, it press W it move with walk cycle animation.
however it didn’t go back to idle as I stop pressing.

how can I make player do idle if no move?

Hi, you can use states:

(press up arrow key to run walk animation. Release up arrow key to go back to idle)

so how did you do it in running?