Ignore key press event in input fields when acting on the whole document