For me it works this shortcuts by default in Intellij:
WIN: Alt+F12
MACOS: option+fn+F12.
Probably in MACOS you don't pay attention to fn to switch with F12 key