Let $\mathfrak{g}$ be a Lie algebra and $\mathfrak{h}$ is a Cartan subalgebra. We know when the lie algebra is semi simple then the killing form, $\kappa(X,Y) = Tr(X^{ad}Y^{ad})$, is non degenerate in $\mathfrak{g}$ and more importantly in $\mathfrak{h}$. So it is a bilinear form analogous to the metric providing an isomorphism between $\mathfrak{h}$ and $\mathfrak{h}*$ and allowing us to take the inner product across these spaces.
One thing that isn't clear fromt the literature I've read (and from my Universities lecture notes) is when we are able to to put the killing form in the form $\kappa_{ij} = -\kappa \delta_{ij}$ and so we can treat the inner product as the normal euclidean dot product. Some notes I have read say this is only true for compact groups, others I have read say you can always do it and some don't even mention it (my lecture notes).