The Oyster card works on London Underground, buses, trams, DLR, London Overground, and certain National Rail services within the London fare zones. Bedford, located in Bedfordshire about 50 miles north of London, is outside this area.
If you're commuting regularly, a season ticket or a key smartcard from the relevant train operator is usually the most cost-effective option.