Windows only: If you want to disable the keyboard and mouse of your computer for some time, there is no easier way than Toddler Trap.
This tiny utility is useful when you want to clean your keyboard or mouse without shutting down the PC or when you don't want your coworkers or children messing with your computer while you are away (though we would suggest locking your computer as a better solution).
On running the ToddlerTrap you will find a window as shown here. All further key press and mouse clicks will be blocked until you close this window.
ToddlerTrap is available as an Auto Hot Key script. In case you don't have Auto Hot Key installed, here is a stand alone exe.