1993 Camry ignition key pull out alarm

This is a 93 Camry.

When I turn on the ignition with the key and then turn the ignition off and pull the key out, an alarm goes on.

When I turn the key to the middle (not all the way) and turn the key back and pull the key out, an alarm goes on.

When I only turn the key to have lights on in the car and turn the key back and pull key out, no alarm.

What’s going on?