EphB controls NMDA receptor function and synaptic targeting in a subunit-specific manner.