Hold down the Command key and press Tab. This will pop up the application switcher. Keep pressing tab until you have selected the application you want to quit or hide.
Then, with the Command key still held down, press Q to quit or H to hide. You can then tab to the next application you want to quit or hide and do the same thing.
Shopping online? You can help support Basics4Mac by making your Amazon purchases through this website. Any purchases you make at Amazon by going through this site will give me a small commission. It does not affect the price of the items you buy. Click the link below to get started.