Do you see any Errors or Warnings in the System or Application Event Log? They may (but often do not) point us in a direction to troubleshoot your issue further.
Have you confirmed your system memory is sound with memtest86 or the Windows Memory Diagnostic? Memtest86 can perform a much more rigorous test of your memory.
Have you run CHKDSK to confirm there are no errors or bad blocks on your HDD?
Have you made any changes to the Pagefile configuration on your system?
Have you overclocked your system?
Have you changed your BIOS from the default values?
What Antivirus and Firewall are you using? I know my G74SX-A1 came with a Trend Micro trial that loaded on startup. If your system also has this trial and you are using a different Antivirus product, you want to make sure the Trend Micro driver is not loading. You can check this by launching Device Manager, clicking on the "View" item in the top menu, and selecting "Show hidden devices". Then expand "Non-Plug and Plaly Drivers" and search through the list. You don't want to have 2 different programs that run kernel mode drivers and do essentially the same thing running on your system at the same time. The drivers could conflict with each other and cause problems such as a system lockup or BSOD.
I do not believe the keyboard or touchpad drivers are responsible for your system lockup.
Believe it or not, Windows Updates can also cause problems. I recommend configuring Windows Update to let you choose which updates to install and research them to decide if they are needed on your system. Then when you do install and encounter problems, you know how far to go back with System Restore.
If you've had your system for some time and done a lot of tweaking, it can sometimes be faster (if the easy troubleshooting does not resolve your issue) to just do a clean install of Windows 7 and install updated versions of the drivers you need.
G74SX-A1 - stock hardware - BIOS 202 - 2nd Monitor VISIO VF551XVT