UPDATED: Save a custom_field value when automatically creating a post using wp_insert_post

Solved: There was different capitalization on the variable $key

($Key vs $key)

Always the simple things you miss eh? 🙂