Logic Pro 9 Transposing Loops

I am a newbie, apologies.

Can anyone tell me how to transpose loops to the right key? I did it once but now can't remember how! For that matter, is there an easy way to transpose tracks (even when they are not loops)?
If they are apple Loops, in the inspector engage the reveal triangle for transpose options.

If it's not an apple loop, you will have to use the transform options.