Prime Minister John Key has accepted the resignation of United Future leader Peter Dunne after he was found to have withheld information from an inquiry into a leak of a GCSB report.