key return method