Researchers have introduced a molecular switch that could control when drugs are active or inactive in the body.