method keypressed add timer
method keypressed add timer