McKee's hat trick helps SA beat Heritage