My friend takes the piss out of me because I have so many lanyards, but they all have a different purpose.
One carries house keys, USB stick, loyalty cards. Next carries my car key on it's own. Third carries keys to all my anti-theft devices on the car so I can get the car warming up while I take everything off.
I have before locked my car keys in my car though, so you aren't alone there. I'm guessing you put your scooter keys in said scooter's storage compartment which then locked?
Keys, keys, keys! So many, yet how do we store them all?!
Probably at least once or twice a year, I lock myself out of my vehicle, it's a bad habit. Usually through the goodwill of the local police department, all I lose is a couple hours of my time.
Today I hit a new low, though, I'll tell the story for therapy purposes. I rode the scooter to a local park to go for a walk and decided to put the garage door opener and house keys in the locked scooter storage compartment rather than carry them on the walk. But I mistakenly put the scooter keys in there as well and immediately kicked myself. After phone calls to friends, family, and roadside assistance, and a few hours of waiting, my friend and I were able to pry the compartment open so I could reach in and grab my keys. That causes me to ask questions about the security of the storage compartment, but I am greatly relieved.