Microsoft Surface Pro 4 Keyboard, not sure if working

I've had it a few years and it was working fine until about 2 months ago, all keys responding and mouse pad in good order. I bought a second keyboard and that didn't work so I've now got myself a bluetooth keypad and that has resolved the issue.

eBay