Ahem. Whether Kingdom Hearts is darkness or light, I don't know. But although Riku was meant to have the keyblade, the time he was about to get he chose darkness over light. So since Sora was the closest being with a pure heart near by, he got the Keyblade.