If keyboard has both midi-in and midi-out port, then midi out on midi cable has to go to keyboard midi-in and vice versa. After cable connection is done, try different midi-in and midi-out device under your PC. (I remember they can not be the same device)