Thanks Laurent for the move and the code editing!
I'm not quite sure how Thor handles the
playAnimation function, but it could be that whenever you call it, the animation starts again from the beginning, thus if you 'start' the animation new everytime you move it, it will always show the first image of the animation i.e. it will look like it's not animated anymore.
You could start the animation when the event KeyPressed is emitted and stop it (or change it to the none moving animation) when the event KeyReleased gets emitted or you could use a boolean to check the state on your own.