Program: 68943
Project: 68943
Buggy source:
@Override public void keyPressed(KeyEvent e){
  if (e.getKeyCode() != KeyEvent.VK_W) {
    Lizzie.analysisFrame.getAnalysisTableModel().setSelectedMove(null);
  }
  if (e.getKeyCode() == KeyEvent.VK_O && (e.getModifiers() & KeyEvent.CTRL_MASK) != 0 || e.getKeyCode() == KeyEvent.VK_R) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.loadGameByPrompting();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_S && (e.getModifiers() & KeyEvent.CTRL_MASK) != 0 || e.getKeyCode() == KeyEvent.VK_W) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.storeGameByPrompting();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
    Lizzie.board.nextMove();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_LEFT) {
    Lizzie.board.previousMove();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_SPACE) {
    Lizzie.leelaz.togglePonder();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_P) {
    Lizzie.board.pass();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_N) {
    Lizzie.frame.toggleShowMoveNumber();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_O) {
    Lizzie.optionDialog.setDialogSetting(Lizzie.optionSetting);
    Lizzie.optionDialog.setVisible(true);
  }
 else   if (e.getKeyCode() == KeyEvent.VK_C && (e.getModifiers() & KeyEvent.ALT_MASK) != 0) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.clearBoardAndState();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_G) {
    String inputMoveNumberString=JOptionPane.showInputDialog(Lizzie.frame,"String_Node_Str","String_Node_Str",JOptionPane.QUESTION_MESSAGE);
    if (inputMoveNumberString != null && !(inputMoveNumberString=inputMoveNumberString.trim()).isEmpty()) {
      try {
        int moveNumber=Integer.parseInt(inputMoveNumberString);
        if (inputMoveNumberString.startsWith("String_Node_Str") || inputMoveNumberString.startsWith("String_Node_Str")) {
          Lizzie.board.gotoMoveByDiff(moveNumber);
        }
 else {
          Lizzie.board.gotoMove(moveNumber);
        }
      }
 catch (      NumberFormatException ex) {
        JOptionPane.showMessageDialog(Lizzie.frame,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
    }
  }
 else   if (e.getKeyCode() == KeyEvent.VK_V) {
    if (Lizzie.board.isInTryPlayState()) {
      Lizzie.board.leaveTryPlayState();
    }
 else {
      Lizzie.board.enterTryPlayState();
    }
  }
 else   if (e.getKeyCode() == KeyEvent.VK_X) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.board.dropSuccessiveMoves();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_A) {
    Lizzie.optionSetting.setAnalysisWindowShow(!Lizzie.optionSetting.isAnalysisWindowShow());
    Lizzie.analysisDialog.setVisible(Lizzie.optionSetting.isAnalysisWindowShow());
  }
 else   if (e.getKeyCode() == KeyEvent.VK_H) {
    Lizzie.optionSetting.setWinrateHistogramWindowShow(!Lizzie.optionSetting.isWinrateHistogramWindowShow());
    Lizzie.winrateHistogramDialog.setVisible(Lizzie.optionSetting.isWinrateHistogramWindowShow());
  }
 else   if (e.getKeyCode() == KeyEvent.VK_F1) {
    if (!Lizzie.frame.showControls) {
      Lizzie.frame.showControls=true;
    }
  }
 else   if (e.getKeyCode() == KeyEvent.VK_HOME) {
    Lizzie.board.gotoMove(0);
  }
 else   if (e.getKeyCode() == KeyEvent.VK_END) {
    Lizzie.board.gotoMove(Lizzie.board.getData().getMoveNumber());
  }
 else   if (e.getKeyCode() == KeyEvent.VK_ENTER) {
    Lizzie.board.playBestMove();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_S) {
    if (Lizzie.board.getData().isBlackToPlay()) {
      Lizzie.optionSetting.setShowBlackSuggestion(!Lizzie.optionSetting.isShowBlackSuggestion());
    }
 else {
      Lizzie.optionSetting.setShowWhiteSuggestion(!Lizzie.optionSetting.isShowWhiteSuggestion());
    }
  }
  Lizzie.frame.repaint();
}

Fixed version (ground truth):
@Override public void keyPressed(KeyEvent e){
  if (e.getKeyCode() != KeyEvent.VK_W) {
    Lizzie.analysisFrame.getAnalysisTableModel().setSelectedMove(null);
  }
  if (e.getKeyCode() == KeyEvent.VK_O && (e.getModifiers() & KeyEvent.CTRL_MASK) != 0 || e.getKeyCode() == KeyEvent.VK_R) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.loadGameByPrompting();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_S && (e.getModifiers() & KeyEvent.CTRL_MASK) != 0 || e.getKeyCode() == KeyEvent.VK_W) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.storeGameByPrompting();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
    Lizzie.board.nextMove();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_LEFT) {
    Lizzie.board.previousMove();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_SPACE) {
    Lizzie.leelaz.togglePonder();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_P) {
    Lizzie.board.pass();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_N) {
    Lizzie.frame.toggleShowMoveNumber();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_O) {
    Lizzie.optionDialog.setDialogSetting(Lizzie.optionSetting);
    Lizzie.optionDialog.setVisible(true);
  }
 else   if (e.getKeyCode() == KeyEvent.VK_C && (e.getModifiers() & KeyEvent.ALT_MASK) != 0) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.clearBoardAndState();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_G) {
    String inputMoveNumberString=JOptionPane.showInputDialog(Lizzie.frame,"String_Node_Str","String_Node_Str",JOptionPane.QUESTION_MESSAGE);
    if (inputMoveNumberString != null && !(inputMoveNumberString=inputMoveNumberString.trim()).isEmpty()) {
      try {
        int moveNumber=Integer.parseInt(inputMoveNumberString);
        if (inputMoveNumberString.startsWith("String_Node_Str") || inputMoveNumberString.startsWith("String_Node_Str")) {
          Lizzie.board.gotoMoveByDiff(moveNumber);
        }
 else {
          Lizzie.board.gotoMove(moveNumber);
        }
      }
 catch (      NumberFormatException ex) {
        JOptionPane.showMessageDialog(Lizzie.frame,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
    }
  }
 else   if (e.getKeyCode() == KeyEvent.VK_V) {
    if (Lizzie.board.isInTryPlayState()) {
      Lizzie.board.leaveTryPlayState();
    }
 else {
      Lizzie.board.enterTryPlayState();
    }
  }
 else   if (e.getKeyCode() == KeyEvent.VK_X) {
    Lizzie.board.leaveTryPlayState();
    Lizzie.board.dropSuccessiveMoves();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_A) {
    Lizzie.optionSetting.setAnalysisWindowShow(!Lizzie.optionSetting.isAnalysisWindowShow());
    Lizzie.analysisDialog.setVisible(Lizzie.optionSetting.isAnalysisWindowShow());
  }
 else   if (e.getKeyCode() == KeyEvent.VK_H) {
    Lizzie.optionSetting.setWinrateHistogramWindowShow(!Lizzie.optionSetting.isWinrateHistogramWindowShow());
    Lizzie.winrateHistogramDialog.setVisible(Lizzie.optionSetting.isWinrateHistogramWindowShow());
  }
 else   if (e.getKeyCode() == KeyEvent.VK_F1) {
    if (!Lizzie.frame.showControls) {
      Lizzie.frame.showControls=true;
    }
  }
 else   if (e.getKeyCode() == KeyEvent.VK_HOME) {
    Lizzie.board.gotoMove(0);
  }
 else   if (e.getKeyCode() == KeyEvent.VK_END) {
    Lizzie.board.gotoMove(Integer.MAX_VALUE);
  }
 else   if (e.getKeyCode() == KeyEvent.VK_ENTER) {
    Lizzie.board.playBestMove();
  }
 else   if (e.getKeyCode() == KeyEvent.VK_S) {
    if (Lizzie.board.getData().isBlackToPlay()) {
      Lizzie.optionSetting.setShowBlackSuggestion(!Lizzie.optionSetting.isShowBlackSuggestion());
    }
 else {
      Lizzie.optionSetting.setShowWhiteSuggestion(!Lizzie.optionSetting.isShowWhiteSuggestion());
    }
  }
  Lizzie.frame.repaint();
}