These are the default, universal shortcuts provided by macOS.
Press (or swipe up with three/four fingers) to enter Mission Control, then click the desired desktop or use arrow keys + Return. switch desktop mac shortcut