Earning a Spirit Key in Yu-Gi-Oh GX Spirit Caller happens during a specific story event.
You'll receive it when you reach the Shadow Riders event. At that point, you'll be called to Sheppard's office along with the other duelists, and he'll fill you in on the Shadow Riders, the Sacred Beast cards, and everything tied to them. When he asks if you want to save the world, simply say yes. Interestingly, you don't actually get to see the key itself, but it's yours all the same.