If you are talking about having 2 separate keyboards send MIDI data to Sonar, that works fine - you just have to make sure input devices are checked in preferences, and for your USB-connected keyboard make sure you have appropriate drivers for the keyboard installed and loaded.
If you were referring to something else, please clarify,
Bob Bone