On Mac cmd-tab moves through applications. You need cmd-~ to move through an application’s windows.
It’s a small difference but one that really breaks muscle memory.