Fix glitch with keyboard