Undo / redo key

I would like to know how to UNDO.

I was typing a long text when somehow half my text desappeared. I tried Ctrl z, Ctrl y, and I could not recover my text.

Is there an UNDO/REDO anywhere?

Welcome to the community.

What application and operating system were you using? It may be helpful as well to know what keyboard was in use?