The in-game menu is famously unhelpful on this one, which is why so many players get stuck. The button you want is Select.
Stand next to the vehicle, hit Select, and you are in. Once inside, the same button gets you back out, and the vehicle's own weapons replace your usual loadout — which is generally a significant upgrade when a giant ant swarm is closing in.