unlock mouse and pause on esc