change last-command-char to last-command-event