using keyup for the pause eventlistener