added keypress to jquery extension