private void KeyboardPanelPressed(final JPanel jPanel) {
        if (!new ArrayList(Arrays.asList(jPanel.getComponents())).isEmpty()) {
            return;
        }
        for (final Component comp : KeysPanel.getComponents()) {
            if (comp instanceof JToggleButton) {
                JToggleButton keyButton = (JToggleButton) comp;
                if (keyButton.isSelected()) {
                    jPanel.setLayout(new FlowLayout());
                    final JButton keyboardPanelButton = new JButton(keyButton.getText());
                    keyboardPanelButton.setBackground(comp.getBackground());
                    keyboardPanelButton.setForeground(comp.getForeground());
                    keyboardPanelButton.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                            KeyboardPanelButtonPressed(evt, jPanel, comp);
                        }
                    });
                    jPanel.add(keyboardPanelButton);
                    jPanel.validate();
                    jPanel.repaint();
                    keyButton.setSelected(false);
                    listOfDisabledKeys.add(comp);
                } else {
                    if (!listOfDisabledKeys.contains(comp)) {
                        comp.setEnabled(true);
                    }
                }
            }
        }
    }