last-command-char has been removed, convert to last-command-event