@sdmitch said:

Alt+Backspace is the keyboard equivalent.

I didn't even know that. Ctrl+Z does the same.

If you already started a line for instance (or pretty much any operation) but do not want to finish it, press the Esc(ape) button.