@Override
	public void keyPressed(KeyEvent e) {
		if(e.getKeyCode() == KeyEvent.VK_W) upPressed = true;
		if(e.getKeyCode() == KeyEvent.VK_S) downPressed = true;
		if(e.getKeyCode() == KeyEvent.VK_A) leftPressed = true;
		if(e.getKeyCode() == KeyEvent.VK_D) rightPressed = true;
		if(e.getKeyCode() == KeyEvent.VK_1) onePressed = true;	
		if(e.getKeyCode() == KeyEvent.VK_2) twoPressed = true;	
		if(e.getKeyCode() == KeyEvent.VK_3) threePressed = true;	
		if(e.getKeyCode() == KeyEvent.VK_ENTER) enterPressed = true;	
		if(e.getKeyCode() == KeyEvent.VK_SPACE) spacePressed = true;	
	}