I don't think there is a strict rule, but as a rule of thumb you could check whether the meaning of the verb is active or passive.
Active -> heb. Ik heb gelopen. Ik heb gedaan. Ik heb vergeten (I forgot)
Passive -> ben. Ik ben bedrogen. Ik ben vergeten (They forgot me)
There are exceptions (which quite frankly I can't come up with right now), and unclear verbs. Like 'hebben'. Is this something you do or something that happens to you? Dutch chooses active, so "ik heb gehad".
"ik" is only with a capital if it's at the start of the language. No special treatment like in English.