The theory of deontological ethics states that an individual has its own sense of responsibility towards his/her duty of doing the right thing. Individual morality guides them regarding the righteousness and wrongness of any act. Immanuel Kant gave this theory and according to him one must focus on doing the right thing and put least focus on its consequences.
Immanuel kant's categorical imperative is the inborn sense of what is right and wrong, but the actions taken that we base on this sense he says are driven by experience