2000 Pontiac Grand Am problems after replacing key lock cylinder

I replaced the ignition key lock cylinder on my 2000 Pontiac Grand Am SE. I performed the re-learn process by cranking the engine over, then releasing to the ON position for about 9 minutes. During the 9 minutes the SECURITY light blinked the whole time, then at the end it went solid for a few seconds, then off. On the next cranking cycle I was able to start the engine and thought all was good. But now when I open the door the car beeps as if the key is left in the ignition and the automatic locks are disabled with the door opened.
What is the problem and how do I fix it?

It sounds to me like the light green wire at the lock cylinder is probably pinched causing that circuit to be grounded. Or if there’s a separate switch/sensor for key in ignition it’s probably been improperly installed, but as I’ve said it’s a light green wire. Or it could be that you installed a bad new switch.