A key message can come from the fob battery, interference or a voltage drop on the bike. If the starter cranks but the engine will not fire, a smell of fuel alone is not enough to blame the key.
Start with a simple comparison
Try the second fob if you have one, and the backup close-range detection at the button described in the owner's manual. If the bike switches on that way while normal detection fails, that points to the fob battery or the radio link, but it does not prove it is the only cause.
The fobs described use a CR2032 cell. Before replacing it, check the cell marking, polarity and contacts. "About two years" of battery life is what some owners report, not a guaranteed lifespan.
Do not confuse it with the bike battery
If the dash reboots when you try to start, a relay clicks or several different warnings appear at once, check the battery voltage under load and the terminals. A new fob battery will not fix a flat main battery.
Equally, buying a new bike battery just because of a Key detect fail message, without checking both power sources, is premature.
Once the dash is on
If the ignition was left on and the rider walked away with the fob, the warning on returning may differ from the original access failure. Switch the system off properly and back on with the key nearby. Do not use walking away with the fob as a way to stop the engine.
If the error remains with good batteries and a second key, the antenna, control unit and pairing need diagnosis. How to add a key and the normal keyless system indications are covered separately.