I don't fully understand your question but I think you're asking something about the very tricky semantics of the verb 'remember'.
The verb is frequently classed as a (mental) state verb. However, in my view it is very often better understood as an active verb, meaning 'actively recall information from memory'. In this sense, when you finally remember something that has been on the tip of your tongue, for instance, you're performing a mental action. I think this is the sense that you intend in your example. The knowledge of how to do it is not in your mind, then you actively recall that knowledge, and then the knowledge of how to do it is in your mind.
Does that answer your question?