Connecting Scales and Keys

Most jazz tunes are not in a single key, so how do you deal with key changes, and different scales?