using keypress instead of keydown for text insert, handling BS/DEL in code src