fixed right and left key problem.