If you know how TV remote controls work, it is the same. A key fob is a very little remote control that runs on batteries. It works by sending a small infrared signal to the locks. Depending on the button pressed, these signals tell the lock to open or close.