By law the landlord may be able to file against any damages in excess of the deposit. Damages can be accessed by anything more than normal wear and tear, and the court recognizes such wear.
While a normal amount of "wear and tear," is expected, you must leave the premises as you found them. Otherwise, you must pay to restore them to that condition.
This would depend on your lease and what it specifically states. Normally, average wear and tear to the apartment is expected and not charged to the tenant. Some landlords charge for a carpet cleaning and painting the apartment on top of any required repairs.
They can charge for cleaning the carpets, repairing the walls or doors, replacing any broken light and plumbing fixtures, replacing any broken or damaged appliances, replacing broken cabinetry, and cleaning the walls of undue marks or paint. If furniture was included in the lease, fixing or cleaning that can also come out of your rental deposit.