Typically I find that if a song starts in, say, G, and everything resolves to G, then it's commonplace for musicians to say that that song is in 'the key of G'.
But isn't the key based on which accidentals are used?
So, for example, in the A Major scale you have A, B, C#, D, E, F#...