To get the Galactic Key for the warehouse in Veilstone City, head to the Galactic Grunt standing by the building with the antennas.
Talk to the grunt outside, and he'll run off, dropping a Poké Ball item. Pick it up and use it to unlock the warehouse. Once inside, battle the Galactic Grunts deeper in until you collect all the Poké Ball items, and you'll find the Galactic Key among them.