Most keyless entry systems give you a low-battery warning well in advance. However, if the battery does die, many systems have a backup method, such as a mechanical key or an external battery port.