It takes practice. 🙂 When I was younger I used to listen to my discman (remember those?) and would listen to a CD pause type out the lyrics (rewind when necessary) eventually I was able to type without pausing which felt pretty good. Then I discovered websites that featured lyrics and that was the end of that!
In school they had us take typing lessons which were cool...but my favorite parts where at the end they let us play games that helped us learn to type as well.
Thanks to MSN back in the day I can type without looking at the keyboard. We also got classes at school to practice on typing without looking because that's a skill an administrative employee needs.