public void checkGameInput() {
        float velocityX = 0;
        if (moveLeft.isPressed()) {
            velocityX-=player.getSpeed();
        }
        if (moveRight.isPressed()) {
            velocityX+=player.getSpeed();
        }
        player.setVelocityX(velocityX);

        if (jump.isPressed())
        {
            player.jump();
        }
    }