Update key var to api_key.