before implementing key repeat