Tenants in NYC almost always win in Landlord Tenant Court. I've had 2 occasions to sue my landlord before buying my apartment..
It seems to me that not every tenant has a "smart key" or smart phone and that should be provided at no extra cost. I'll pay close attention to that ruling...Personally we never use a standard metal key or almost never enter through a front door. Our garage is a main place to enter. Not everyone can successfully use a smart phone or can afford one. The landlord needs to make entrance to everyone no matter what.
https://cozy.co/blog/what-landlords-and-renters-need-to-know-about-changing-the-locks/