created just one keydown method and one keyup method