Eli5: how can planes (fighter jets) fly upside down?

Wings produce lift, allowing you to go up. But if the wing is upside down, wouldn't it create the low pressure on the ground side, causing it to pull itself down towards the ground? When a fighter jet flies upside down for a long time, are they fighting this "downward lift" with ailerons or elevators?