synchronized void notifyListeners(Key key, boolean pressed) {
        HashSet<OnToggleListener> tmpList = (HashSet<OnToggleListener>) onToggleListeners.clone();
        for (OnToggleListener listener : tmpList) {
            listener.onToggle(key, pressed);
        }
    }