Oops I forgot to tell you the most important part
oopsie, but the good news is the part you now need to replace is only 400 dollars!!
For the last number, also remember you may need to enter it then hold the button down a second or two for it to unlock.
Seems odd you need to change your battery yet again, have you checked the voltage on them to see if they indeed are dead or just changing them to be safe about it? Many things can interfere with the key fob and it communicating with your bike. Even fluorescent lights can cause issues, or even the led Peanut Bulbs can cause grief from time to time.
Why would you keep the key with the bike like that? Someone could just walk up and ride off on it, or as you see, you can be locked out if something goes wrong. I mean shit, if you are going to leave it on the bike, why not just tape it or velcro it right there ON the sensor, under the fairing??? That way if the battery dies, it's still in passive mode. Yah, BOTH of those are bad ideas...
You should probably keep the passive key in the room where you park the bike at, for quick access in cases like this. The master can be tucked away in a drawer or something.
Aaron