Swap only keys or tomes

Swap method updated, for to allow only keys or Tomes.