Keyboard shortcut to lock the keyboard, without locking the screen?
You can use KeyboardCleanTool (made by the developer of BetterTouchTool).

It opens the application window with a button you have to press in order to lock/unlock the keyboard.

Download it from BetterTouchTool.net