@Override
	public void keyPressed(KeyEvent e) {
		if(e.getKeyCode() == KeyEvent.VK_RIGHT) {
			right = true;
		}
		else if(e.getKeyCode() == KeyEvent.VK_LEFT) {
			left = true;
		}
		else if(e.getKeyCode() == KeyEvent.VK_UP) {
			up = true;
		}
		else if(e.getKeyCode() == KeyEvent.VK_DOWN) {
			down = true;
		}
		
	}