new version for CCKeyboardControl