The keyboard is attached to the motherboard by a rather thin (but wide) ribbon cable.
[b][u]IMPORTANT:[/b][/u]
Where the ribbon cable attaches to the motherboard there is what looks like a terminal connector (something that you would think can be 'unplugged').
It is [u]NOT[/u] a plug - it is a 'slider' that anchors the end of the ribbon cable, so it only SLIDES up a few millimetres to release the ribbon cable. When you insert the new keyboard's ribbon cable, you just gently push the slider back down to anchor it.
I'm saying this from experience. The first time I encountered one of these connectors I all but destroyed it trying to 'unplug' it, not realising that it wasn't designed to be unplugged. ;)