looking for setKeyboardEnabled() substitute

Keyboard dispatching have changed recently in developed version. What I really miss in this new style is lack of setKeyboardEnabled() method, which allowed me to temporary disable the incoming keyboard input (on time of cutscene for example). Of course I can do it myself by putting flag in my Layer, which will be checked on enter of onKeyPressed() and onKeyReleased(), but maybe it should be somehow implemented in engine, as it seems to be usefull feature?