You want your brain to become used to the idea that just knowing how to use a particular problem-solving technique isn’t enough—you also need to know when to use it.
Flashcards is one solution, another is to do random problems or open a book to a random page, then recall.