How do you do undo with text? Eg. pressing Ctrl + Z.

Thanks.