MIDI note triggering

I want to use a MIDI keyboard to triggers Cues, but only play the cue while the note is active.
I have set the MIDI input to work with macros & command macros to trigger my desired cues.
The problem is when I get a MIDI release key the light state stays on.
Is there a way to utilise the note off ?
Any ideas please