function onSample()
{
    // Does this scene have a key code: <key id="myID" ctrl="true" key="S" command="myCmd"/>
    if (scene.doesKeyCodeMatch("S", true, false, false))
    {
        shell.print("YES it does");
    }
    else
    {
        shell.print("NO it does");
    }
}