One of the advantages of Microsoft Windows PCs is that you can have many different programs and windows open at the same time. However, this advantage becomes a disadvantage when you have to close dozens of open windows. Fortunately, you can perform repetitive tasks, such as closing windows, with keyboard shortcuts.
An option for closing windows with keyboard shortcuts is as follows:
Open the window you want to close with your mouse.
Hold down the Alt key and then press the Spacebar to display the right-click context menu at the top of the program window you want to close.