Q. Are there Undo and Redo commands for the cursor position?

Yes, they are called the Back and Forward commands. On the default keyboard shortcut, you can use the Back (ALT + LEFT) and Forward (ALT + RIGHT) keys. The buttons for these commands can be added to a toolbar.