To add to lunarlink's advice, I recommend just using the auto battle feature. Then you can go play/do something else while your character grinds for a key. I haven't really tested it, but I think you get keys faster if you use the betting option beside the auto battle toggle.