Adds a keyframe to the beginning and end of the pasted function, reproducing the source function.