Hi,
Other venfors have same problem after upgrading to 8.1:
I don't know the model/product of your machine, there are hundreds of m6 models. Please use the following way to check the model/product of your machine:
http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&cc=us&docname=c00033108
Then go to support site to download the keyboard driver and re-install on your machine.
Regards.