The "Secret Key" (unlocks Rotom's room in Eterna Galactic Building) is an event item—normally distributed via Nintendo Wi-Fi (ended 2009). Action Replay codes (use at own risk):
Master Code (required): 7E2A0C5D 7E033D06 A0F8E092 1A0B250D Secret Key in Bag (Slot 1): 94000130 FCFD0000 B2101D40 00000000 00000B60 0000016D D2000000 00000000 Alternative (via mail): 94000130 FCFD0000 B2101D40 00000000 20000B60 0000016D D2000000 00000000
Warning: Codes may corrupt saves. Backup first. Legitimate way: trade from someone who received the event.