Keypoint animation works based on keypoint and keytimes attributes. A sample keypoint animation as shown below.
Source code available here