In Mac OS X Lion, let's say I have 3 apps running with windows visible (apps A, B, C). C is focused. I hit Command+H and C hides, revealing B. I hit Command+H again, hiding B and revealing A.
Now when I hit Command+H, A hides, revealing B.
How can I hide all windows using this, or a similar, method in macOS?