trying to solve keyboard bugging