finish the funcs of KeyManager,solve the coder issue of KeyManager form