My suggestion is to look in John Deere parts (URL provided) and get the part number. Then call greenfarmparts.com or dealer to order. Both can help you with the part number if needed. I have attached the page from tech manual TM1470 on how to replace switch. It is at the bottom of the page. It does not say it in the manual, but you might want to consider disconnecting the negative cable on the battery. Check your owners manual as it may say how to disconnect the battery.
https://partscatalog.deere.com/jdrc/
You might also check selectmauals.com for the tech manual $24.95
670 770 790 Tractor - TM1470 - SelectManuals.com - Workshop, Repair and Service Manuals
Thank you very much!!