I don't know how, but I do believe the dealer can program your key so it doesn't open the windows when the button is depressed. You may want to dig into the owners manual too.
Besides your mishap, it's actually a really cool feature. On hot days I'll open everything from across a parking lot while I'm walking back to my car.
2008 550i Sport
Space Gray Metallic
2001 540i6 - Deceased
Topaz Metallic Blue