An inter-dimer allosteric switch controls NMDA receptor activity