Converting a Spline InputKey to a Distance efficiently?

How would this be translated to BPs?