How to test a laptop keyboard from its ribbon cable
here is a useful tool at the following link.  http://www.ebay.com/itm/Laptop-Keyboard-Tester-Kit-Backlight-Test-Device-9pcs-Spare-FPC-Connectors-/111657285215