In Windows, you can close the active window or program by pressing Alt + F4. This works like clicking the 'X' button in the top-right corner and closes the current program right away. If no apps are open, using this shortcut will bring up the shutdown dialog instead.