exit when adding key