While the player touch the Ground he can't stop swimming.
Even if you open your inventory you continue to swim.