fixed arrow keys bug