get_api_key function

Get and set API keys