We all get it at some point -- our cars won't detect the key fob, either prohibiting us from unlocking doors or starting the engine. This can be frustrating, but it's also a good reminder to keep your key fob close by when you're driving.
Usually, the reason why your car says no key detected but you have the key is because the battery in the key fob is dead. Many modern vehicles have many systems that constantly use electric energy, so the battery can run down. In this case, you'll have to recharge the battery and replace it if necessary.
If your car is still refusing to start even after replacing the key fob battery and reprogramming it, there may be other issues at play. For instance, if the key was cut without the security chip in place, it will not communicate with the vehicle's computer system.
Other possible problems include physical damage to the key fob itself, or it could simply be old and worn out. If the key fob has any visible damage, this is a clear indicator that it's time to replace it. Finally, a fuse that has blown may also prevent the car from starting. If this is the case, check your owner's manual for the location of the backup fuse slot and consult a professional if you're not comfortable replacing the fuse. You can also try lightly tapping the key fob like you would an old TV to reset the internal circuitry. This will only work temporarily though.