add hook process of keyboard events