`last-command-char' is gone in Emacs24, it is `last-command-event' now.