Add a key to an instance if one doesn't exist.