To train your 'muscle memory' (muscles don't have memory, it's actually training your brain to fire muscles in the correct timing and order), you have to practice, repetition. Practice makes permanent. Practice only makes perfect when the task you are repeating is perfect, so practice the correct actions, a lot.