public void keyPressed (KeyEvent e) {
	            char key = e.getKeyChar();
	            switch (key){
	            case W:
	              ship.moveY(-15);
	              break;
	            case A:
	              ship.moveX(-15);
	              break;
	            case S:
	              ship.moveY(15);
	              break;
	            case D:
	              ship.moveX(15);
	              break;
	            case P:
	               if(paused==true) paused =false;
	               else paused = true;       
	               break;
	            case Space:
	              if(System.currentTimeMillis()-tShot>300){
	                Bullet b = ship.shoot();
	                bullets.add(b);
	                tShot=System.currentTimeMillis();
	              }
	              break;
	            case N:
	              newGame=true;
	              break;
	        }
	      }