Terminating the program

Pressing the Esc key causes the program to terminate.