This article is from the ZTerm FAQ, by Les Jones email@example.com with numerous contributions by others.
Hold down the command key and type a period. Command-period, AKA
the International Mac Distress Code, also cancels printing and
pastes, in ZTerm or most other applications, and is the keyboard
shortcut for the cancel button in most dialog boxes.