fixed the bug that it clear the movement state if player hit the backward key.