update index.html for key press