{
for (LinkedList<KeyboardKey> row : keyboardLayout.get(keyboardLayout.currentKeyboard))
for (KeyboardKey kk : row)
if (kk.keyboardButton != null)
{
KeyListener l[] = kk.keyboardButton.getKeyListeners();
for (KeyListener k : l)
kk.keyboardButton.removeKeyListener(k);
ActionListener ak[] = kk.keyboardButton.getActionListeners();
for (ActionListener k : ak)