Ah, sorry, you are right - if you have card names as dictionary keys, then your code is correct.
If it isn't working, my guess is that you are not picking Cards instance. There should be a parent event which picks one Cards instance, for example, a clicked card. Or if you want to process all cards, put these events inside the "For each Cards" loop.