public void keyPressed(KeyEvent ke){
  int keyCode=ke.getKeyCode();
  if (keyCode == KeyEvent.VK_B) {
    motionBlur=!motionBlur;
  }
 else   if (keyCode == KeyEvent.VK_A) {
    useAA=!useAA;
    createAnimationImage();
  }
 else   if (keyCode == KeyEvent.VK_C) {
    alterColor=!alterColor;
    createAnimationImage();
  }
 else   if (keyCode == KeyEvent.VK_I) {
    useImage=!useImage;
    createAnimationImage();
  }
 else   if (keyCode == KeyEvent.VK_UP) {
    changeResolution(true);
  }
 else   if (keyCode == KeyEvent.VK_DOWN) {
    changeResolution(false);
  }
 else   if (keyCode == KeyEvent.VK_L) {
    linear=!linear;
  }
 else   if (keyCode >= KeyEvent.VK_1 && keyCode <= KeyEvent.VK_9) {
    blurSize=keyCode - KeyEvent.VK_0;
    prevMoveX=prevMoveY=null;
  }
}

public void keyPressed ( KeyEvent ke ) { int keyCode = ke . getKeyCode ( ) ; if ( keyCode == KeyEvent . VK_B ) { motionBlur = ! motionBlur ; } else if ( keyCode == KeyEvent . VK_A ) { useAA = ! useAA ; createAnimationImage ( ) ; } else if ( keyCode == KeyEvent . VK_C ) { alterColor = ! alterColor ; createAnimationImage ( ) ; } else if ( keyCode == KeyEvent . VK_I ) { useImage = ! useImage ; createAnimationImage ( ) ; } else if ( keyCode == KeyEvent . VK_UP ) { changeResolution ( true ) ; } else if ( keyCode == KeyEvent . VK_DOWN ) { changeResolution ( false ) ; } else if ( keyCode == KeyEvent . VK_L ) { linear = ! linear ; } else if ( keyCode >= KeyEvent . VK_1 && keyCode <= KeyEvent . VK_9 ) { blurSize = keyCode - KeyEvent . VK_0 ; prevMoveX = prevMoveY = null ; } }
toggles various rendering flags
