Try these hacks when your key fob stops working
Ask whether you should bring all your keys; Toyota specifically recommends doing so for certain smart-key malfunctions.
Prepare Before You Get Stranded
Find your mechanical key and backup starting instructions while everything is working. Save the relevant manual pages on your phone and keep your spare key somewhere accessible to a trusted person.
A few minutes of preparation can make an unexpected remote failure much easier to handle.