move cursor when in i/R modes (fix #9)