Get or set a property on an object using a keypath