This method returns a keyGroup object created for the given ID, or null if scene failed to create the object.
function onSample()
{
var keyGroup = scene.addKeyGroup("myNewKeyGrp");
if (keyGroup)
{
//add new key to the key group
keyGroup.addKey("myNewKeyId", "J", "otherTestCmd", false, true, true); // Alt-Ctrl-J
}
}