We appeared to have a 737 enter Ground Mode in the climb and were alerted by the cabin altitude horn (which was also the Take Off Configuration Warning horn). This resulted in the outflow valves motoring towards open and the cabin depressurising. We managed to stop the cabin rising above 14,000' but it was close- the masks were on the point of dropping out. It can happen.