pause and resume key handlers