Change to keydown/touchstart events and word-wrap editor