set arrow keys to go to next/prev lines at the end/beginning of line