Lesson one: read the room before you step in
Stand in the doorway and look at where the water is in relation to anything electrical: outlets, cords, appliances, the panel. The CDC is clear that nobody turns power on or off, or uses any powered tool while standing in water. A main breaker within reach of dry ground can be switched off from there. If not, an electrician is the call.
The same page tells anyone who smells gas to close the main gas valve, open the windows, get out, and tell the gas utility, the fire department or the police from outdoors, with no sparks.
