To abort any command which requires you to type information at the echo area, type Ctrl+G
at any point up to where you would normally press Return. For instance, if you type Ctrl+X Ctrl+F
in order to open a file, and then decide against it, type Ctrl+G
instead of specifying a filename.