added zero_force function and fixed keycodes for firefox