fix settings modal hiding on keypress