LTM Limited interview question

why you used hashmap.keyset? what is hashmap.keyset function