Not Giving security amount back

Hi, I was staying in flat from 2nd Feb 2017 to 31st Oct 2019, I paid 32 k as security deposit . It has been 10 days my landlord is not showing any interest to give my security back as a back up I am keeping his flat key. I already asked him to see his flat condition so that I will be sure that there will be no damage and he could not able to do any damage after providing the key. I am having this conversation as recorded one. He is not agree to see his flat in the presence of me , he is keep asking for key and threatening us that he will break the lock. According to the rent agreement he was supposed to give two months notice period if there is any issue with tenant but he threatened us to vacate the flat with in months and warned that no water and electricity will be provided after this months if we will not vacate the house, This conversation is also in written. What kind of action I can take in this case , Should I return the key or need to keep with my self. If any damage will happen after returning the key who will be responsible for this.