To be able to follow the 4px/8px grid, you can install a plugin that makes things a bit easier for you.
After its installed you need to manually add the shortcuts in MacOS Settings.
You might need to manually find Adobe XD, and select it (scroll down to "Other…" at the bottom to manually find Adobe XD in Applications. Be sure to select the application Adobe XD and not the Adobe XD folder.)
This naming convention should follow the names that the plugin has, such as Large Nudge Up. These names can be found in the Plugin Menu in Adobe XD.
Click Add. Thats it!
You can now see your shortcuts in Adobe XD: