Is there some secret to not getting your car door lock actuator fucked up?

Current Events

IDK but I can unlock my truck but can no longer lock it with my key

My fob died years ago and I haven't replaced the battery