1) there is generally clause in agreement that one key of flat shall remain with the licensor .
2) security deposit is returned to licencee simultaneously with delivery of possession to the licensor
3)if licencee has given in writing that flat is vacated and he has sent keys by courier and not received by you then you can enter the flat by having another key made of the flat .