 The infrared light pulses form a pattern unique to that button.The receiver in the device recognizes the pattern and causes the device to respond accordingly.Most remote controls for electronic appliances use a near infrared diode to emit a beam of light that reaches the device.