Only intentional behaviour is called kamma. Hence all unintentional actions are not considered kamma. In the final analysis, all factors that influence our actions could be traced to three root causes. These are craving, hatred and ignorance or their opposites namely, noncraving. All acts motivated by craving, hatred and ignorance are morally bad or unwholesome.
All acts motivated by their opposites are morally good or wholesome.
All evil and good actions produce consequences for which the doer of actions is responsible. This correlation between actions and consequences shows certain tendencies rather than inevitable consequences. If this was so this would be a deterministic doctrine. And if the law of kamma is deterministic doctrine, then the living of holy life by a person would be meaningless, for he would not be able to change his destiny. Therefore, if one wishes to explain the correlation between actions and consequences, then one should say just as a man does a deed whose consequences would be experienced in a certain way, so does he experience its consequences.