This is so I remember this in a year when I accidentally reset my keyboard again.
- Set it to Mac mode: progm + F5.
- Remap Home to Ctrl: progm + F12, then Ctrl, then Home.
- Remap End to Esc: progm + F12, then Esc, then End.
- Toggle off key clicks: progm + F8.
- Toggle off action tones: progm + shift + F8.
- In Mac System Preferences, don't change modifiers, but set Use F1, F2 etc as standard function keys.
progm + Esc to see result: