Fixed walking animation on key press and not on key press