My guess would be protools has midi thru turned on, and so has the midi keyboard, so your note off messages are going around in a circle. Check the data in protools. Can you see the notes are the correct length on the screen? I assume the keyboard is a synth and protools is connected back to it to use its internal sounds? If so the keyboard sent an on and off message for each key press, protools records it but sends it back a fraction of a second later, but the keyboard plays it again, and send that back to protools. I suspect for every note you played you will find many duplicates, and the keyboard is running out of polyphony which cuts notes dead when the next one comes in.