Ha, great question. It did my head in for a while.
Now I have all my keyboard shortcuts synced for my IDE between the two (WebStorm uses the same keymap for both OSes, VS Code creates a different keymap for each OS if you use syncing). I’ve remapped anything that uses cmd on the mac to be ctrl.
And I use an external keyboard on both with the same layout so the shift/ctrl/alt keys are in the same spot. So there’s only a few differences where Mac uses cmd but Windows is ctrl like copy/paste, save, etc.
But 90% of my keyboard shortcutting is in my IDE, so it’s not such a problem.
And my brain seems to adjust pretty quickly now after a few minutes of sitting down. The one that occasionally gets me is that alt+left goes back a word on mac, but goes back a page in Chrome on Windows.