private void setPressedByKeyboard(boolean isPressedByKeyboard) {
    myPressedByKeyboard = isPressedByKeyboard;
    repaintComponent();
  }
private void setPressedByKeyboard(boolean isPressedByKeyboard)