Engage the Master Autopilot Switch first, then HDG hold - for some reason, MSFS prefers it this way around and the AP responds more smoothly.