cursor jumps to starting position

Solution
You may have inadvertently pressed the key combination which enables RTL (Right-to-Left) typing.

To change it back to LTR (Left-to-Right) typing, try pressing Ctrl + Right Shift