A member of the Keglević family was a Commander-in-chief, Imperial Army General, Lieutenant of Ban (Viceroy) of Croatia and a Croatian count.
[1] Keglevich took part in the Great Turkish War, notably distinguishing himself during the Battle of Vienna in 1683 when he gathered an army and cared about them at his own expense[7] — at the 1687 parliament meeting in Požun, King of Hungary and Croatia Leopold I of Habsburg granted him the Count's title for military merit.
[7] Keglevich participated in drafting particular articles for the Treaty of Karlowitz in 1699 and was a member of several parliamentary committees for boundary delimitation with the Ottoman Empire.
[7] From 1702 he held the office of a lieutenant (Croatian: namjesnik) of Ban of Croatia for military and political affairs.
[1] King Joseph I appointed him a governor (Croatian: veliki župan) of Požega County in 1707 and a Commander-in-Chief of Border Troops in 1708.
[1] Keglevich arranged the book publication of Pavao Ritter Vitezović Bossna Captiva in Trnava in 1712.