How does RealTracks find the right scale modes for the solo?

I generated a realtrack solo for the song Round Midnight. It doesn't sound very good. I know there are some key changes. Do I have to change key for those bars? That would be a lot of work for all songs which have key changes.


Thanks,
Jan R.

piano: Hammond Skx Pro
guitar: Ibanez LGB30
guitar amp: Boss Katana 50 MKII