ひざをうつ

膝を打つ

N3Expression
Expression, Godan verb (tsu ending)
to express sudden recognition and being impressedto slap one's knee