pause and input manage