It appears many people have a keyboard issue with the HP laptops and I do as well. I saw one response from HP that suggested removal of peripheral equipment and reinstalling keyboard drivers. Now you are asking for trouble.
I have a Pavilion G6 and the keyboard locks up daily. I have to shut down or restart. .Also the cursor does not stay at the end of a sentence; it jumps to another place and I have to look for it. Another issue has to do with searching where multiple tabs open up instead of going directly to a site. I know I have to shut the computer down at this point in order for it to work properly.
I have seen quite a lot of these issues posted so I know it's an HP problem. I am very unhappy with this computer and will never purchase another one from HP.