Can I get a clarification how license transfer is working for those who has two or more keys?

For example I have 3 keys and I'm planning on upgrading one machine (and doing a new OS install), thus needing a older key to upgrade to a new one.
If I'm using this service which of the license it's going to choose?

Thanks for info in advance.