Maytag diswasher

my dishwasher will not stay on. i may have a latch that needs to be replaced.
i do not have the manual. please advise.
The dishwasher stays on if i push in and hold.

thanks
fran

Sounds like a faulty door latch or door switch.