Reconnect the MIDI keyboard after a while and see if the problem persists. Check to see if the cable and the ports on both devices are working.
The first fix I would recommend is first turning off the MIDI keyboard and disconnecting its USB cable on both ends.