Ok here is a theory of mine. When Terra, Aqua and, Ven picked up the keyblades I think they were choosing the wielders of the keys. So what if things got mixed up when Riku chose the darkness. It was like since Sora was the closest to Riku he got chosen instead, since he was the closet heart...