animation won't play

Is there a way to prevent the animation playing in the blender game engine?Because that is what happening to me.Press w to go forwards in the blender game engine.

The file is a mess. What am I supposed to be looking for?

Anyway usually animation problems are because you don’t have armature modifier last in stack of modifiers. Make sure you order them properly.

I made armature modifier last and it did not work.Any other answer to my problem.

In the Logic for the armature
For the W keyboard input try using an Actuator or Keyboard sensor rather than an Always sensor

I used or instead of and and it worked.That was a simple mistake.