Dendritic calcium nonlinearities switch the direction of synaptic plasticity in fast-spiking interneurons.