Press Esc
Which Key Closes or Hides a Dialog Box? (Keyboard Shortcut Explained)

Learn which key is used to quickly hide or close a dialog box without applying changes—usually the Escape (Esc) key.