fixed keydown and keyup
final