Short Answer: What does the contract say?
You have a tenancy agreement with your landlord. This tenancy agreement should state the rights and obligations both you and your landlord have, regarding your tenancy.
As in most tenancy agreements, you agreed to pay a deposit, which will be returned to you at the end of the tenancy period, reduced by the value of any damage to property that you caused.
Now, your contract may or may not state how the landlord may do his inspection. Generally, whatever the contract says is what is legally enforceable. Im going to take a guess and say that your contract does not state whether your landlord must be given the keys to the property before the inspection, or whether you must be present at the inspection, or how the inspection is supposed to be carried out.
Now you don't need to research previous cases or judgments to know what you can do here. Go back to the contract: the landlord has the right to carry out an inspection in order to assess whether the deposit is to be returned in full or reduced.
No ifs, no buts, this is a right bestowed upon the landlord by the contract. So you cannot limit the way he does his inspection, let him do it. On the same token, unless the contract says so, he cannot demand the keys to the property before carrying the inspection out, as having the keys to the property has nothing to do with an inspection.