magit? with ido? I think I'm in love.
last-command-char -> last-command-event in my code.