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