   public void keyPressed(KeyEvent e) {
      float cx, cy;
      switch (e.getKeyCode()) {
      case KeyEvent.VK_MINUS:
         cx = view.getCenterX();
         cy = view.getCenterY();
         view.setWidth((int)(view.getWidth() / 1.1));
         view.setHeight((int)(view.getHeight() / 1.1));
         view.setCenterPosition(cx, cy);
         break;
      case KeyEvent.VK_EQUALS:
         cx = view.getCenterX();
         cy = view.getCenterY();
         view.setWidth((int)(view.getWidth() * 1.1));
         view.setHeight((int)(view.getHeight() * 1.1));
         view.setCenterPosition(cx, cy);
         break;
      case KeyEvent.VK_1:
         loadModel("models/beagle/Bug Hunt Speeds.nlogo", "Bug Hunt Speeds");
         break;
      case KeyEvent.VK_2:
         loadModel("models/virus.nlogo", "Disease Model");
         break;
      case KeyEvent.VK_3:
         loadModel("models/fireflies.nlogo", "Fireflies");
         break;
      case KeyEvent.VK_4:
         loadModel("models/flocking.nlogo", "Flocking");
         break;
      case KeyEvent.VK_5:
         loadModel("models/traffic.nlogo", "Traffic");
         break;
      case KeyEvent.VK_6:
         loadModel("models/moths.nlogo", "Moths");
         break;
      case KeyEvent.VK_RIGHT:
         break;
      case KeyEvent.VK_LEFT:
         break;
      case KeyEvent.VK_UP:
         break;
      case KeyEvent.VK_DOWN:
         break;
      }
   }

   public void keyPressed(KeyEvent e) {
      float cx, cy;
      switch (e.getKeyCode()) {
      case KeyEvent.VK_MINUS:
         cx = view.getCenterX();
         cy = view.getCenterY();
         view.setWidth((int)(view.getWidth() / 1.1));
         view.setHeight((int)(view.getHeight() / 1.1));
         view.setCenterPosition(cx, cy);
         break;
      case KeyEvent.VK_EQUALS:
         cx = view.getCenterX();
         cy = view.getCenterY();
         view.setWidth((int)(view.getWidth() * 1.1));
         view.setHeight((int)(view.getHeight() * 1.1));
         view.setCenterPosition(cx, cy);
         break;
      case KeyEvent.VK_1:
         loadModel("models/beagle/Bug Hunt Speeds.nlogo", "Bug Hunt Speeds");
         break;
      case KeyEvent.VK_2:
         loadModel("models/beagle/Bug Hunt Camouflage.nlogo", "Bug Hunt Camouflage");
         break;
      case KeyEvent.VK_3:
         loadModel("models/fireflies.nlogo", "Fireflies");
         break;
      case KeyEvent.VK_4:
         loadModel("models/flocking.nlogo", "Flocking");
         break;
      case KeyEvent.VK_5:
         loadModel("models/traffic.nlogo", "Traffic");
         break;
      case KeyEvent.VK_6:
         loadModel("models/moths.nlogo", "Moths");
         break;
      case KeyEvent.VK_RIGHT:
         break;
      case KeyEvent.VK_LEFT:
         break;
      case KeyEvent.VK_UP:
         break;
      case KeyEvent.VK_DOWN:
         break;
      }
   }
