MIDI controllers

Hello, I'm new to MAC, and I just bought a M-audio keystation pro 88 MIDI controller keyboard which is connected via USB to my computer. I'm using MAC OS X version 10.5.2
I want to control Csound with this keyboard, so as a first test, I pasted the midiin.csd code provided in Csound's documentation. I ran it, but no messages are registered in the console when I turn the knobs or play the keyboard. Any help would be very appreciated.

Diego