You would presumably need todo this for the exact keyboard and acoustic properties of your target. And , what if they move the keyboard to their lap? Or put the keyboard legs down?
Also many keyboards are very quiet clicks these days. And what if I’m playing music?
I imagine a surreptitiously planted keystroke logger is far simpler. Or perhaps camera(s).