Aluminium foil can act as a basic shield against radio-frequency signals, potentially preventing the key fob's signal from being detected or relayed when the key is not in use.