Add a new key to the curve.
Smooth tangents are automatically computed for the key.
Returns the index of the added key.
If no key could be added because there is already another keyframe at the same time -1 will be returned.
See Also: keys variable.
Add a new key to the curve.