Add option to temporarily disable listening for key events