Activity monitor is the right application, but you can also press Option-Command-Escape to force quit something (with it handily telling you what is 'not responding'.)
You can get that by clicking on the Apple in the menu bar and choosing force quit, as well, if you don't want to remember Cmd-Opt-Esc
-Allen