delete unused js, insert keypress (implementation still pending)