Keyboard open close event delay

Added a delay before sending close/open events of keyboard widget. This is done for preventing sending multiple events in a very short time if keyboard glitches