Code:
gameplay = true;
if (gameplay) {
     // gameworks
     // all code in here
     // the infamous pause below
     if (Key.isDown(Key.SPACE)) {
          gameplay = false;
     }
}