Remove keypress handler on modal when it hides.