How would you say "They know to swim". Would it be the same? I mean they technically have the same messing but I got it wrong for saying that so I just wonder what it would be.
'They know to swim' is not incorrect English. It's a perfectly valid sentence, it just carries different meaning to 'they know how to swim'. The former expresses a sort of duty or obligation, whereas the latter expresses ability.