It is very POSSIBLE that Terra gave Sora the keyblade in the first place. Because in KH2FM, when you first met Terra, he saids "No is not you, the one I chose is not you." And he also said "We met before, it was when".That means he must have chosen Riku to be the new Keyblade master. But Riku...