realized the function of "NewKey" GUI