Ctrl+Z and Ctrl+Y
Pressing Ctrl+Z will undo any change. For example, if you cut text, pressing this key combination will undo the cut. These shortcuts can also be pressed multiple times to undo or redo multiple changes. Pressing Ctrl+Y would redo the undo.
On Apple computers, use Cmd+Z and Cmd+Y to undo and redo.