I unchecked
Share Drivers with Other Programs and now it seems to be OK. I have left it up several hours and done some browsing, etc and the MIDI keyboard is still active. I remember checking the
Share Drivers... option some time ago in order to be able to watch a Youtube tutorial and try it out on Sonar - going back and forth quite a bit. I couldn't hear Youtube once Sonar was up or vice versa. Checking the option fixed this. However, NOW when I uncheck the
Share... option, I can hear Youtube and Sonar simultaneously. Seems like I shouldn't be able to hear Youtube and Sonar at the same time with
Share... unchecked (I couldn't before). I don't quite understand this part. But, it's working the way I need it to now. Thanks!
Meanwhile, I learned to use the Stop Audio Engine and Reset Audio buttons (in the transport panel), which would let me switch between Sonar and Youtube also.