Electric alarm locks with contact making inside the lock or in the striking plate by introducing the key {or another object}