Rob Key has stood down as captain of Kent after seven seasons at the helm and will be replaced by James Tredwell.