Generating a BSOD on purpose might be useful if you'd like to test your Startup and Recovery settings or maybe you'd just like to see one if you never have. Either way, it's kind of fun and it works on Windows 8, Windows 7, Windows Vista, and Windows XP.
Note: Changes to registry keys are made in these steps. Take care in making only the changes described. I recommend that you backup the registry keys you're modifying in these steps as an extra precaution.
Locate the HKEY_LOCAL_MACHINE folder under My Computer and click on the (+) sign next the folder name to expand the folder.
Continue to expand folders until you reach the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid registry key.
Select the Parameters key under kbdhid or i8042prt.
From the menu, select Edit, then New and finally DWORD Value.
On the right-hand side of the screen, a new value will appear. Name this new value CrashOnCtrlScroll. The value must be named this exactly to function properly.
Double-click on the CrashOnCtrlScroll DWORD value you just created and set the Value data to 1.
Click OK and then close Registry Editor.
Restart your computer and log back in to Windows as you normally do.
To generate the BSOD, press and hold the Ctrl key on the right side of the keyboard while you press the Scroll Lock key twice in quick succession.
Warning: Your system will lock up and need to be restarted after causing the BSOD so make sure any work you are doing is saved and all programs are closed before initiating the keystrokes above.
The BSOD will appear on screen.
The specific STOP code generated will probably be 0xDEADDED (MANUALLY_INITIATED_CRASH1) but could be 0x000000E2 (MANUALLY_INITIATED_CRASH).
Note: If the BSOD appears but the system reboots immediately, you will need to disable the automatic restart on system failure option in Windows.
If the above method didn't create a BSOD, head back to Step 3 and instead of kbdhid, find the i8042prt registry key and follow the remaining instructions from there.
You should be able to use the kbdhid for all USB keyboards but on some computers, especially ones that still use PS/2 keyboards, you'll need to use i8042prt instead.