key-operated lock