William McKelvy graduated from the U.S. Naval Academy at Annapolis, Class of 1891. He served in Cuba during the Spanish American War and in China during the Boxer Rebellion, as well as repeated tours in the Caribbean. He retired as a Colonel of Marines in 1925. His son, also a graduate of the Naval Academy (1921) earned the Navy Cross in World War II and retired as a Brigadier General.