replace last-command-char for last-command-event

last-command-char was an alias of last-command-event and was
deprecated long ago. Has been removed in Emacs 24.3