getKey() now automatically builds ancestor key