Ok, here's a definition of MIDI:
MIDI is a form of computer data that keyboards and computers can send back and forth that turn on notes. You can write musical notes on a computer screen and the data turns notes on and off on the keyboard or sound module. Likewise you can play notes on your keyboard and the computer will "record" these commands to turn on and off notes.
It would be best for you to visit this site, and read bout MIDI.
MIDI 101 by TweakHeadz Lab
It explains everything in simple terms, so it's easy to learn.