fix the arrow key problem