Among the first things that every human learns is the difference between up and down. When we learn to drive a car, it's easy to understand that turning the steering wheel right will turn the car right, and vice-versa. But when we become pilots, it is time to abandon these two-dimensional constructs.
We first learn to steer an airplane on the ground with our feet, rather than the "wheel," though many pilots need a little trial-and-error to rewire that brain circuit. Once we take off, there's more re-wiring to be done, because an airplane moves through the air with potential to change direction in all three dimensions.
Such adjustments take more time than is likely to be available if inverted flight was not part of the plan. But you can prepare yourself for unusual attitudes (intentional or otherwise) by changing the way you think about the flight controls.
Never allow yourself to think of your control inputs relative to the ground. Dispense with nonsense about pushing the yoke forward to lower the nose below the horizon, or pulling it back to raise the nose Thinking about “up” and “down” relative to the ground will get you into trouble someday.
So how should you think of control inputs? Make it all about you. Let me share some old-fashioned advice I don’t see being taught much anymore. Regardless of the position of the airplane relative to the horizon—be it turning, descending, climbing, banked shallow or sharp, or (gulp!) flying upside down—the following will always be true:
When you think of movement relative to yourself, with the airplane essentially “rotating” around you, you will know what control input(s) to apply to guide the airplane right where you want it to be, when you want it to be there.
Speaking of rotating, if you decide to give aerobatic flight a try (with an experienced instructor in a properly equipped and certified aircraft, of course), you will probably prove this egocentric concept of control on the very first day, flying a slow roll. This is a deceptively simple maneuver—a 360-degree roll around the propeller shaft on a steady heading—yet it is also one of the more difficult aerobatic maneuvers to master: If you want it to look sharp for judges, without wild wobbles of the nose, you must maintain good rudder coordination. You will find that, when rolling to the left, you begin with left rudder and left stick together (most aerobatic airplanes have sticks, but it's the same if there's a yoke). But while the ailerons are held in the same place throughout the roll, your feet should never stop moving, because you need to begin to "switch" the rudder input as the roll passes through 90 degrees and begins to approach inverted. That left-stick/left rudder now becomes a left-stick/right rudder combination while the airplane is upside-down. Then, as the roll continues through knife-edge vertical back to upright, it's time to return to left/left with stick and rudder. Ideally, this is done in one, deliberate, continuous motion of your feet, from left to right and back to left.
An instinctive grasp of the connection between flight controls and you, the pilot, will serve you well when you’re recovering from an upset, particularly one that was not part of the plan.