added keypress to pause etc