King James Version (KJV)
And he changed his behaviour before them, and feigned himself mad in their hands, and scrabbled on the doors of the gate, and let his spittle fall down upon his beard. {scrabbled: or, made marks}
Modern English
He changed his behavior before them, and pretended to be insane in their hands, and scribbled on the doors of the gate, and let his spittle fall down on his beard.
Hebrew
וַיָּ֧שֶׂם דָּוִ֛ד אֶת־הַדְּבָרִ֥ים הָאֵ֖לֶּה בִּלְבָב֑וֹ וַיִּרָ֣א מְאֹ֔ד מִפְּנֵ֖י אָכִ֥ישׁ מֶֽלֶךְ־גַּֽת׃
vayashem david ʾet-hadbariym haʾeleh bilbabvo vayiraʾ mʾod mipney ʾakiysh melek-gat