The buttons can’t be operated underwater. You’ve been lucky thus far. Casio asks you not to use the buttons underwater.
https://www.casio-intl.com/asia/en/wat/water_resistance/
> Even if a watch is water-resistant, do not operate its buttons or crown while it is submersed in water or wet.