Trouble connecting keyboard

Then you need to be looking at your MIDI port and forget about looking for your keyboard. Set your midi track to the MIDI port your keyboard is plugged into. The rest basically has already been said in earlier posts.
If your still having problems then please state your problem more concisely, including descriptions of what you have already done if applicable.