Created KeyIterator for iterating over the keys of another iterator.