Firefox actually has that feature built-in. It comes preloaded with the English Wikipedia, so you can type "wikipedia <term>" to search Wikipedia for "<term>". Other searches can be added from the addon store, or by right-clicking on a search box and defining a keyword.