Depending on the bike, I sure as hell wouldn't stick it out into oncoming traffic.
Depending on the traffic, I wouldn't stick myself out into traffic.
If the key is in it, I think you could get charged with DUI if you're by chance intoxicated, depending on the officer.
It all depends on how shittily you want your evening to go.