What is a KeyPath used for?

What is a KeyPath used for?