Need to add/edit a key frame VBA

New to solidworks api, and still green to vba, but what I would like to do in a motion study would be to add a keyframe to a pathmate

Dim myDimension As Object

Set myDimension = Part.Parameter("D1@PathMate2")

myDimension.SystemValue = 0.254

but I would like to create a key frame, at different time intervals..

or how do I call a key frame in VBA

SolidworksApi macros