Press the button used to draw or holster your weapon — by default that is Q.
Mass Effect reuses the weapon toggle for entering and leaving the Mako. Context decides what happens: while you are driving, the same input dismounts you; on foot near the vehicle, it gets you back in.
Check your key bindings in the options menu. If the weapon toggle has been rebound, the vehicle control has effectively moved with it. Also make sure the Mako has actually come to a stop — attempting to exit while moving will not work.
The same button handles the interface prompts, so it is worth knowing where it is bound before you start.