To fix the problem, the first thing to do is to squirt a small amount of dry lubricant or graphite powder inside the slot where the key goes. Insert the key into the lock and pull it out a few times without turning it.