@Override
    public void keyPressed(KeyEvent ke) {
        if(showScore)
            return;
        if(stopThread){
            newGame();
        }
        switch (ke.getKeyCode()) {
            case KeyEvent.VK_LEFT:
                slider.buttonPressed = Slider.button.LEFT;
                break;
            case (KeyEvent.VK_RIGHT):
                slider.buttonPressed = Slider.button.RIGHT;
                break;
            case (KeyEvent.VK_SPACE):
                if (slider.weaponized && weapon == null) {
                    launchWeapon();
                }
                break;
        }
    }