1.Restructure of class keyboard. 2.Wipe out useless code in probeCandidate