Midi keys are keep being played after finger was lifted

Are you sending MIDI right back out (Cubase MIDI through enabled) to the external MIDI keyboard? If yes, try turning it off.

There’s also this prior thread which might offer some clues: