Alt-F4 (and sometimes Control+W or Control+Q), or Command+Q on a Mac, is the keyboard shortcut for quitting the current application. In Windows it will quit the currently open that's in focus on the screen. On a Mac this is also generally the case, but sometimes it's not as clear. To know which application is going to quit when you perform this keyboard command, just look in the upper left corner to see it's name.