Is there an application for Ubuntu, that would behave like KidKeyLock for Windows?

That is, upon activation, it prevents any keypress from working, until a specific sequence ("password") is typed, but without locking the screen or mouse.

The point of this is to allow a kid (baby/toddler) to pound away on the keyboard, but leaving the the screen open and mouse activity unlocked, allowing the parent to browse FacebAskUb Very Important Parenting information sites at the same time.

Related: If there are no such applications, any idea how difficult would it be to code one with Python? (If this is the case, I will of course ask further from StackOverflow...)

While not the most eloquent, this one indeed does the job! My daughter thanks you! ;)
–
Ilari KajasteJun 12 '11 at 20:26

It should be noted that this does not prevent modifier keys from affecting mouse events. E.g. even when keyboard is locked, if ctrl is held down mouse wheel will zoom the browser window, instead of scrolling down. (Though the refernce software I used (KidKeyLock) behaves the same.)
–
Ilari KajasteJun 24 '11 at 11:40