fixed bugs in keyboard notifications