Truthfunction instance is not recreated on every keypress