added ability to apply transform function to entered char on keypress event