Fixed keydown and keyup controls