Add docstring for firstKeyBeyond