Here are some common ways I use keyswitches:
• With an orchestral library, like Vienna, I will go to Staff view and write the notes I want the instrument to play and in the bass clef, I will write the key switches to change articulations. For example, I will write violin notes on the Staff and I will write notes like C#2, F2, G2 etc. to change from legato to trill to tremelo, etc. You could also do this in Paino Roll, if that's your preference.
• For a strumming guitar, like RealGuitar, I will use Staff view to write the notes in the chord I want to strum, and then below that, put keyswitches for each strum (like F2 to down-stroke, F#2 for upstroke, etc.)
• I just bought Bolder Sounds Bluegrass Banjo and their Mandolin. The Mandolin can do chop chords or mute strums using keyswitches. In solo mode, a keyswitch can control tremelo.
• In these examples I am saying the keyswitches are below the musical notes, but some instruments have keyswitches high on the keyboard.
Lots of soft synths (Hollywood Strings, Vienna, RealGuitar, Acoustic Legends, Electri6ity, etc.) use keyswitches.
There are three kinds of common keyswitches:
1. Hit the keyswitch and the instrument plays that sound or articulation until the next keyswitch. In Staff or Piano roll, put the keyswitch just before the sound you want. You will have to back the project up before the keyswitches before hitting Play to hear the right sounds.
2. The instrument changes articulation only while the keyswitch is held down. In Staff or Piano Roll, then, you would have to make the keyswitch last as long as you want that particular sound.
3. A few products try to double up on keyswitches based on velocity: hard key strike (high velocity) on the keyswitch does one thing and a soft touch does another. I find those a pain in the ****.
Many manufacturers let you define which keyswitch does what. I tend not to change them around so I don't have to remember what I did on every project. For example, in Vienna, if I change from Chamber Strings to Orchestra Strings, I don't have to worry that the keyswitches will be screwed up because I always use the default and Vienna tries to be fairly consistent among libraries and patches when possible.
Hope this helps.