I saw your thread when I was looking for information on the L40 keyboard, I might be able to help you replace or fix it -
IBM produced an external version of the L40 keyboard, called the Model M4. Here's a picture of one -
I have a similar version of this keyboard (M4-1, which has a Trackpoint), and from dismantling it, it looks like IBM took the keyboard unit from the L40 laptop, and just designed a housing for it. The M4's keypad connects to a controller board inside the housing using the same sort of ribbon cables in your picture.
There's a company called Unicomp that ended up owning IBM's keyboard division that still sells these M4 keyboards. Their site claims that they are out of stock, but they do a repair service, and the people who run the company are really helpful, if you asked for a replacement keypad for an IBM M4, they might be able to help you.
That failing, you can try opening the keyboard assembly itself. On the underside, there's a little plastic wedge in the center, if you push it down you can slide the thing apart. I'd say that where the dead keys are, you will see a tear or erosion of the membrane traces. This can be repaired using conductive glue to patch up the failure in the traces.
There used to be a guy on eBay who sold the special "Trackpoint" (a rather nifty mouse that could be converted into a trackball) brand new in box for $5, unfortunately I can't find any...