split keyindent calculation