I agree that learning to think in relative harmony (nashville numbers, interval relationships) vs specific note names will help you be much more comfortable moving between keys. If you know ahead of time, though, it's always a good idea to practice in the key you'll be performing in. I'm also among those that say don't use a pitch shift pedal for this. They have their places, but I don't think is one of them.
