Have you followed the guide?
https://lmms.io/wiki/index.php?title=Using_MIDI
If you have, then you could have a defect cable, or one or more connectors could be damaged (?)
Very hard to say, without inspecting the HW, im afraid
In this list
https://lmms.io/wiki/index.php?title=Us ... _keyboards
AKAI has broad success, so i doubt its your KB (?)