2 group IDs for 1 admin API key

I need read and write access to 2 groups and I want to make it so the key only has so much permission as it needs. I tried doing <name of group a>,<name of group b> and 13,53 but neither worked. Do I just need to use 2 different keys?