Fixed unable to insert character properly when holding an arrow key + pressing another character.