MIDI keyboard connection gets lost

If all of the projects you have open are activated for playback, then Dorico will unload and reload the required sounds when you switch between them. Provided the project is activated for playback, the MIDI keyboard will work. If the project is not activated, then it won’t.