Release a keyswitch

Hi
Anyone have any idea, how to release a keyswitch through the rules? I mean I've had only luck so far, because my libraries had a keyswitch that switched back to normal default mode, so basicly I had a rule which switched that key on before every note, then switch the other keyswitches if they applied.
But now I want to write rules for the realguitar libraries, and those work by applying a keyswitch while it's being held, and if nothing is held, then it's the default open note sustained sound. However notion outputs my keyswitches like this:
So basicly whenever a keyswitch is pressed, it remains held forever. How can I release them?
Anyone have any idea, how to release a keyswitch through the rules? I mean I've had only luck so far, because my libraries had a keyswitch that switched back to normal default mode, so basicly I had a rule which switched that key on before every note, then switch the other keyswitches if they applied.
But now I want to write rules for the realguitar libraries, and those work by applying a keyswitch while it's being held, and if nothing is held, then it's the default open note sustained sound. However notion outputs my keyswitches like this:
So basicly whenever a keyswitch is pressed, it remains held forever. How can I release them?