It took me ages to realize that this was only called if keyframeInput wasn't already an array. Either call this arrayFromKeyframeInput, or move the array check to this function.

Or do both. This isn't really parsing :)