add `setKeyframes` to set multiple keyframes at once