Fixed keydown and keyup.