fixed key-repeat glitch