More knowledgeable folks will answer but I would say the beginning chord defines the key.