Could be lots of things. If you have the manual, it may help to look up info about special modes (Sabbath day mode, for instance) and control locks and such; perhaps you activated some feature that you didn't know about.
Otherwise, I'd guess something is awry in the control circuitry or the keypad itself: either a button that's pressing itself due to wear, or a loose connection, or perhaps a capacitor in the digital power supply that's aged and is causing noisy power rails for the controller, or something of that ilk. Chances are it's not particularly economically viable to repair if you don't have the skills to do it yourself. (And do be aware, if you're thinking of troubleshooting, that microwave ovens are among the most dangerous household appliances to work on if you don't know exactly what you're doing. The magentron supply is designed to output a nontrivial current at several thousand volts, and presents a very real electrocution hazard; and portions of it may remain charged even when things are turned off and disconnected, doubly so when something is broken. That's not to say it's impossible for ordinary people to safely work on microwave ovens, but rather to make sure you sufficiently research and understand the dangers and safety procedures involved.)