The light that's shaped like a key is the immobilizer light and it is supposed to flash whenever the key is out of the ignition. It symbolizes the immobilizer is on, and also gives the appearance of an alarm (which, depending on trim, is on some Mazda3 models)