solve the keyboard bug