Crystallographic and spectroscopic snapshots reveal a dehydrogenase in action