protected void installKeyboardActions() {
    InputMap input = peer
        .getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
    ActionMap action = peer.getActionMap();

    input.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), ENTER_KEY);
    input.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), ESCAPE_KEY);
    input.put(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "pgupkey");
    input
        .put(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),
            "pgdownkey");

    action.put(ENTER_KEY, new AbstractAction() {

      @Override
      public void actionPerformed(ActionEvent e) {
        peer.commitEdit();
      }
    });
    action.put(ESCAPE_KEY, new AbstractAction() {

      @Override
      public void actionPerformed(ActionEvent e) {
        peer.revertEdit();
      }
    });
    action.put("pgupkey", new AbstractAction() {

      @Override
      public void actionPerformed(ActionEvent e) {
        classicPanel.addMonth(1);
      }
    });
    action.put("pgdownkey", new AbstractAction() {

      @Override
      public void actionPerformed(ActionEvent e) {
        classicPanel.addMonth(-1);
      }
    });
  }
protected void installKeyboardActions()