I have a truck that does that when it's cold outside.
The first time I noticed it, I had started the truck to let it warm up. I went back in the house and after a few moments I heard the engine start to speed up. My first thought was that someone was trying to steal my truck.....
The computer runs the idle speed up until I tap the brake, Just like you described. Once it is warmed up it behaves "normal".