See Aborting commands and processes
Ctrl+G
Abort the current command which may either be running or just partially typed in. Use Esc in Microsoft Windows editor emulation.
Esc