Escape velocity is generally calculated at periapsis, and it's the horizontal speed. You can never reach escape velocity vertically. As long as there's only one gravity field, you'll fall back down eventually. But if you get high enough, even a small angle from vertical will have enough tangential speed to make you escape.