Fix keyboard lockup, which occurred when a plugin was devious enough to override handleEvent and not allow keyboard events to reach core. (LP: #934058)
Arguably we should fix the offending plugin (unityshell). But I figured it's better to make core more robust so that the same bug can never occur with any plugin in future.