refactor(Key): extract KeyRegistry to remove the need in `Key.clear`

Could be lazily created on the first call to Key.get, but not much of a benefit. Up to you.