If you get a flat tire while riding, you should:

If a tire goes flat while you are riding, hold onto the handgrips firmly and concentrate on maintaining a straight course. Brake only if you are sure which tire is flat. Exit the roadway once your motorcycle has slowed considerably.
DMV Writen Test