Could be the neutral safety/gear selector switch going bad, a common problem. If it does it again shift through the gears and see if it stops doing it. Switch is $120 to 150 depending on what kind of deal you can get at the dealer.
albert
Is this the same as the "mode selector" everyone is talking about?