@Override
    public void keyPressed(KeyEvent e) {
        if(e.getComponent() != null) {
            if(e.getComponent().getName().equals("codeBoxEdit")) {
                if(e.getKeyCode() == KeyEvent.VK_ENTER || (e.isControlDown() && e.getKeyCode() == KeyEvent.VK_V)) {
                    parent.addCodeToHistory();
                    parent.executeCiphers();
                }
            }
        }
    }