Super cool concept! I've never seen anything like this before! It's also surprisingly fun and addictive lol. Furthest I've made it so far is level 4.
That bug where the game crashes seems to be related to when the level ends while the battery is hypercharged (levitating both balls at the same time). Not sure what's going on there but hope that helps point ya in the right direction.
Also, you are a diabolical genius lol, though I do feel like the keyboard keys switching in the middle of level 3 is pretty unfair ontop of an already tough challenge. Still, solid game! Also I love the music!