You are thinking of relative modes (same 7 notes, different Tonic) ,
@Rhythmman535 is writing of parallel modes (Same Tonic, 7 different scales)
If you play C Ionian = Key of C major
C Dorian = same notes as Bb major
C Phrygian: Ab major
C Lydian: D major
C Mixolydian: F major
and so forth
Thanks - I realized later that that probably was not correct but didn't go back to fix it. The "key" is the root note of the scale.