prevent the handling of keyboard notification by a non active form manager - and some math