Keyboard

Escape key

esc

The escape key is often used to escape from a program or process. Pressing it will typically dismiss a dialogue box just as if you had clicked Cancel.