Move the caret one unit left or right.
- edit: the text being edited.
- unit: how far to go.
- direction: -1 for left, 1 for right.
- extend: keep the anchor, so the selection grows or shrinks.
move_by :: (edit: *Text_Edit, unit: Unit, direction: int, extend: bool = false)
Move the caret one unit left or right.