move cursor and select text by blocks