Midi issue with Cubase 5/reset issue?

I have been using midi with a yamaha keyboard for a midi input for several years. I changed the midi input to be triggered from a fantom G and decided it was easier to go back to using the yamaha keyboard and switched it back. Since doing so, i notice that I do get a midi signal going into cubase and everything is routed correctly since I do get sound from vst instruments. However, what happens is that when I go to record, I get clumps of notes or “chords” that play at intervals instead of timed, continuous notes. I tried to hit the reset on cubase and also re-entered the setup information several times. Is there something else going on or that needs to be reset to make it work correctly with the original midi input that it had been working with flawlessly before the switch?

Any feedback would be appreciated. Thanks.