He's using his Master Enlightenment he can detect them. Post since the Enlightenment was designed to target and identify Keyblade wielders. Also I mean your hanging off the side of a wall, the first guess is magic and easiest way for most to gain magic is with a Keyblade.