Hackers Keyboard has that via ctrl+z, but only in horizontal mode. For this only i had my Galaxy S3 in horizontal per default. But can’t do that with modern phones’ aspect ratio and i’m missing undo since then.