split keyrange into startkey and endkey