The term for the action a fish uses to "gasp" for air is called buccal action pumping. I am wrapping up a conservation biology degree with focus in fishery science at CSU. Here's some information:
dual pump: buccal and opercular action operating in tandem drives water in a nearly continuous unidirectional flow across the gill curtain between them
- the suction phase begins with compressed buccal and opercular cavities and closed valves
- as the buccal cavity expands, the internal oral valves open and water moves into the buccal cavity and across the gill curtain
- during the force phase, the oral valve closes and water is forced out through the opercular valve
Source: https://www.shsu.edu/~bio_mlt/Chapter11.html
A good image of this action can be found here: