fixes modal keypress