Added enable disable keyboard events