synchronized void toggle(boolean pressed) {
		wasDown = isDown;
		isDown = pressed;
        if (isDown && !wasDown) {
            InputHandler.getInstance().notifyListeners(this, true);
        } else if (wasDown && !isDown) {
            InputHandler.getInstance().notifyListeners(this, false);
        }
	}