Minecraft wiki entry for Player, associated text: Swimming occurs when the player is sprinting (double pressing W or pressing Ctrl/Cmd) while the player is submerged underwater. Swimming has the same animation as crawling,