public KeyFrame addCinematicEvent(float timeStamp, CinematicEvent cinematicEvent) {
        KeyFrame keyFrame = timeLine.getKeyFrameAtTime(timeStamp);
        if (keyFrame == null) {
            keyFrame = new KeyFrame();
            timeLine.addKeyFrameAtTime(timeStamp, keyFrame);
        }
        keyFrame.cinematicEvents.add(cinematicEvent);
        cinematicEvents.add(cinematicEvent);
        if (isInitialized()) {
            cinematicEvent.initEvent(null, this);
        }
        return keyFrame;
    }
Adds a cinematic event to this cinematic at the given timestamp. This
operation returns a keyFrame

@param timeStamp the time when the event will start after the beginning
of the cinematic
@param cinematicEvent the cinematic event
@return the keyFrame for that event.
jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java