To get the Team Galactic Warehouse Key in Pokémon Diamond, first defeat the seventh gym leader, Candice in Snowpoint City. Then head to the Veilstone Galactic building, where you'll find a grunt standing outside near the satellite to the right. Talk to him, and after a brief conversation he'll run off and drop an item. Pick it up, and you'll have the Galactic Warehouse Key.