Q&A - Hear notes relative to the chord or the key?

To understand music by ear, should we try to hear each note relative to the chord of the moment or relative to the overall key of the song?