@Override
	public void keyPressed(KeyEvent key) {
		switch (key.getKeyCode()) {
		case KeyEvent.VK_UP:
			System.out.println("pressed: Key Up");
			break;
		case KeyEvent.VK_DOWN:
			System.out.println("pressed: Key Down");
			break;
		case KeyEvent.VK_LEFT:
			if(!moveLeft){
				moveLeft = true;
				ball.move(moveRight, moveLeft);
				System.out.println("pressed: Key Left");
			}
			break;
		case KeyEvent.VK_RIGHT:
			if(!moveRight){
				moveRight = true;
				ball.move(moveRight, moveLeft);
				System.out.println("pressed: Key Right");
			}
			break;
		case KeyEvent.VK_SPACE:
			ball.furtherjump = true;
			ball.jump();
			System.out.println("pressed: Jump");
			break;
		default:
			break;
		}
		
	}