update index.html for keypress