fix for firefox keycode, closes #21