Pro Tools | First Main Windows : Transport Window : MIDI Controls : Wait for Note
 
Wait for Note
When selected, recording does not begin until a MIDI event is received. This ensures that you begin recording when you’re ready to play, and that the first note, or other MIDI data, is recorded precisely at the beginning of the record range.
*Press F11 to turn on Wait for Note.