I'm trying to make it so that if you click a certain combination of buttons in a certain order, the game crashes itself. Is it possible to do that, and if so, how?
Use the browser objects action close.
If you mean like actually crashing the game not just closing it you could make an infinite loop like:
while create object sprite. This will freeze/crash the game.
Develop games in your browser. Powerful, performant & highly capable.
Thanks!