If you don't want to change individual notes in the loop then you can try getting a match by transposing the loop to a chord that's in the key of your desired target key.
For example, let's say you have a loop in Gmin, and you want to use it in a song that's in E major.
First work out the chords that are part of the key of E major: Emaj, F#min, G#min, Amaj, Bmaj, C#min, D#dim.
So if you wanted to use that Gmin loop in the Emaj song, you could transpose it to F#min, G#min or C#min. Of course whether any of them would sound "right" in the song's context is entirely subjective.