Assuming you ask how to close an application created with BMax, I don't think it is possible to quit it like that (at least not when you're inside a loop). You could try something like "If KeyDown(KEY_LCONTROL) And KeyHit(KEY_Q) Then Exit"
I'm not totally sure though.
I'm not totally sure though.