Replace last-command-char with last-command-event.