Not sure but if it isn't the keyboard maybe it could be the power supply to the keyboard or even the keyboard port itself? Have you checked that all the pins are fine? If you have ruled out the actual pysical keyboard then look at the other options?
Huawei P10 review
1995-2015: How technology has changed the world in 20 years
An overview: What leading creative agencies are doing to improve diversity
New iPad, iPhone SE & Red iPhone 7 on sale now
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.