cp.setBorder(new EmptyBorder(16, 16, 16, 16));
InputMap im = cp.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "blur");
ActionMap am = cp.getActionMap();
am.put("blur", new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
layoutManager.blur();
cp.revalidate();
}