Various steps must be taken to create an API key.
First and foremost, a new project must be created at https://console.developers.google.com/project. Click on "Create project" and enter a project name. Then click on "APIs and auth" in the left column. Then follow the steps as shown in the pictures below. The API code that appears in the last image uses you to set the module.