public void keyPressed(KeyEvent e) {
        if(this.gameIsOver||!this.gameIsBegin)
            return;
        if (getTimer().isRunning())
        {
            if (e.getKeyCode() == KeyEvent.VK_UP) {
                curBlock.rotate();
                AppSet.playGameMusic("./sound/rotate.wav");
                this.repaint();
            } else if (e.getKeyCode() == KeyEvent.VK_LEFT) {
                curBlock.moveLeft();
                AppSet.playGameMusic("./sound/change.wav");
                this.repaint();
            } else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
                curBlock.moveRight();
                AppSet.playGameMusic("./sound/change.wav");
                this.repaint();
            } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
                curBlock.accelerate();
                AppSet.playGameMusic("./sound/change.wav");
                this.repaint();
            }
        }
        if (e.getKeyCode() == KeyEvent.VK_SPACE) {
            if (this.getTimer().isRunning()) {
                this.getTimer().stop();
            } else {
                this.getTimer().start();
            }
        }
    }