Getting your computer keyboard and mouse locked is a much needed functionality while cleaning it or when you have toddlers around your computer, free portable utility Toddler Trap lets you achieve this functionality with ease, just launch the small application and it will take focus negating any keystrokes and mouse movements.
Once activated the only action you can take with your keyboard or mouse is to close the application using the X button.