Question: how does xehanort have a keyblade?
Answer: The Keyblade was given to Luxu by the Master of Masters when he received his assignment. The Master had placed his own Gazing Eye within the blade, granting him the knowledge of anything the eye would observe throughout the ages.