updates for keypress with modal