There is a switch that detects if the key is still in the ignition lock. One of the things it does is sound the chime alarm when the doors open as a reminder that you need to take your key. This is where the little thing is located: