if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
ActionRouter actionRouter = ActionRouter.getInstance();
actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
} else if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
ActionRouter actionRouter = ActionRouter.getInstance();
actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
} else if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
ActionRouter actionRouter = ActionRouter.getInstance();
actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
// If the following lines are included, then pressing the DUPLICATE key results in calling the action twice.
// Without the code below, it still works.