fix bug of keyboard.