use txtinput in stead of keydown