I believe the memory used to retain skills is separate from other types of memory. There was a famous patient, Henry Molaison[0] who was the first person to suffer this condition and participated in some really amazing research. He was able to learn new skills, albeit slowly.
"His ability to form long-term procedural memories was intact; thus he could, for example, learn new motor skills, despite not being able to remember learning them."
[0] https://en.wikipedia.org/wiki/Henry_Molaison