I'm no expert on the L322 but this sounds very much like a key sync issue to me.
The fact that key 1 worked then didn't, key 2 fixed the problem for a short while until the codes rolled out of sync.
@Saint.V8 might know the sync routine on these or possibly
@Rick-the-Pick
Could be the passive immobilisation coil at the ignition barrel?