javascript keycodes inserted and tested