problem- keydown function