Use charCode to detect control keys in firefox