new keygen using terminal interface