Character keeps switching to falling when on water surface

I hear what you are saying, but I don’t know how to do it. Could you show me somehow? It would be much appreciated