Bug 1059668 - Move some keyboard removal logics from keyboard_manager.js to input_frame_manager.js