Did you check all of the safety switches? Seat, brake, clutch or HST pedals, PTO switch. Cycle them all and double check the mounting positions too.
How about battery condition and connections? Check the ground spots and they need to be clean. Check / clean the terminals.
Try using an electrical parts cleaner on the ignition switch.
These are the first things to check..... then you can start to eliminate other causes