He discovers that the off switch is broken, before running out of air, but he hits the reverse button instead just before he drowns.
The off switch is broken. This was before running out of air. He discovers this. He hits the reverse button instead. He drowns.