Make debugKey a preference