To get the Team Galactic Key, head to the swamp and look under the bridge. There you'll find a blue-haired girl—talk to her, and she'll hand over the key.
Once you have it, you'll be able to access the areas it unlocks, so it's a helpful step in progressing through that part of the game.