Remove array of characters and replace it with keypress event.