public void keyPressed(KeyEvent e) {
		if (e.getKeyCode() == KeyEvent.VK_LEFT) {
			leftPressed = true;
		}if (e.getKeyCode() == KeyEvent.VK_A) {
			leftPressed = true;
		}
		if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
			rightPressed = true;
		}if (e.getKeyCode() == KeyEvent.VK_D) {
			rightPressed = true;
		}
		if (e.getKeyCode() == KeyEvent.VK_SPACE) {
			firePressed = true;
		}else{
			firePressed=false;
		}if(e.getKeyCode() == KeyEvent.VK_ESCAPE){
			ESC=true;
			
		}if(e.getKeyCode() == KeyEvent.VK_8){
			eight=true;
			
		}if(e.getKeyCode() == KeyEvent.VK_9){
			nine=true;
			
		}if(e.getKeyCode() == KeyEvent.VK_ENTER){
			Enter=true;
			
		}
	}