Hi,
This issue could be caused by driver conflict.
Please open device manager and update the drivers for keyboard and wireless network adapter.
You can also get the latest driver on HP support:
http://h10025.www1.hp.com/ewfrf/wc/pfinder?tool=&lc=en&cc=in&dlc=en&query=Compaq+Presario+CQ50
Meanwhile, to know whether the issue can be caused by 3<sup>rd</sup> part conflict, please test the issue in Clean boot mode:
How to perform a clean boot to troubleshoot a problem in Windows 8, Windows 7, or Windows Vista
http://support.microsoft.com/kb/929135
If the issue doesnt appear, you can determine which one can be the cause by using dichotomy in MSconfig. Checking on half of Non-Microsoft service and restart, determining which half of the services cause the issue and repeating to check half of the problematic
half services.
Please take time to perform these steps and let me know the results.
Keep post.