If a program has become completely unresponsive, you can press (and hold) the Control, Alt, and Deletekeys to open the Task Manager. You can then select the program that isn’t working and click End Task. If you are using a Mac, you can press Option, Command, Esc to open a similar dialog box.
