replace last-command-char with last-command-event