Changed cursor movement to be more intuitive