You probably have conflicting events setting your animations.
something like :
- if a is down set animation to left
- if a+W is down set animation to up
so every tick the animation is set to left and then to up
which makes it seem like the animation isn't running
There are many ways of solving this, you should make sure it's impossible for both events to be true.
You could add a condition w is not down to the if a is down, that way it only triggers if a is down and w is not so that if a is down and w is down only the other event triggers.