Command+tab and command+~ accomplish this with finer control. If the last used window is in another app use tab, and if it’s in the same app use ~.Nice writeup. One thing missing though: how do I switch between windows? I just returned to the Mac after 20 years, and I was shocked not to be able to switch back and forth between two windows. Alt-Tab and all that - fine! But I want to increase my productivity substantially just by switching between the last two windows regardless of which app they belong to. How do I do that??