move the line using arrow keys