Converting behaviors into keyframes