Wrong animation of legs

Hello all, pls help me fix the problem.

  1. When i press W and set cursor in top of screen, Character see on cursor and go to UP, all is ok.
  2. When i press W and set cursor left or right side of screen, Character go UP, but legs animation go to left or right where is cursor.

I need make legs animation up and down when pressed W, S left and right when press A, D and the character with his gun has always looked towards the cursor as it now!

How to make it or fix?
VIDEO EXAMPLE
link text