Scientists have finally unlocked how transcranial magnetic stimulation (TMS) works to treat depression at the cellular level.