Audio file in Media preview in a different key

Even though I set the tempo to the same one in a music sample the key it plays in in the media bay preview window is lower than when I import the loop into the edit area. What am I not doing?