I wondered if anyone knew how to program a Palm Mute Keyswitch into a guitar patch in Kontakt?

I'd like to press the sustain pedal, strum chords, and use a keyswitch that simulates a palm mute. This is the way some guitar libraries work (I believe the Musiclab Real Guitar may work this way).

For certain performances I like to hold the sustain pedal and strum and then use a keyswitch to simulate quickly stopping the strings (note off command) as is useful for certain rhythmic guitar performances.