This patch incorporates key remapping rules for the input filter that depend on the global numlock state.