fixed arrow key bug