Adjust code structure of FilterFirefoxKey.