private void CreateKeyButtons(Keyboard keyboard) {
        KeysPanel.removeAll();
        KeysPanel.setLayout(new FlowLayout());
        if (!keyboard.getMapOfKeys().isEmpty()) {
            for (char key : keyboard.getMapOfKeys().keySet()) {
                // "" + key
                final JToggleButton keyButton = new javax.swing.JToggleButton();
                keyButton.setText(key + "");
//                int[] RGB = selectColourForButton(keyboard, key);
//                Color color = new Color(RGB[0], RGB[1], RGB[2]);
                Color color = selectColourForButton(keyboard, key);
                if (color.getBlue() > 1 && color.getGreen() == 1) {
                    keyButton.setForeground(Color.WHITE);
                }
                keyButton.setBackground(color);
                keyButton.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        OneOfTheKeyButtonsPressed(evt, keyButton.isSelected());
                    }
                });
                KeysPanel.add(keyButton);
                KeysPanel.validate();
            }
        }
        KeysPanel.repaint();
    }