I am just starting out in in Emacs. Sometimes I’ll be experimenting with something and when I’m finished experimenting, I want to just go back to the buffer I was editing, but I don’t know how. Worse, sometimes I hit a key by accident and don’t even know what I hit! In Vim I can just hit ESC to recover; is there any similar way to recover in Emacs?
EDIT: I am using the command line (non-GUI) Emacs.
There’s also ESC-ESC-ESC (keyboard-escape-quit). From the manual:
I find pressing ESC to be a natural response to the desire to “exit” a situation. Hammering it several times can also be emotionally satisfying when you are frustrated.