change charCode to keyCode so adding new items works in FF, closes #8