last-command-charをlast-command-eventに変更
rubyでSymbol's value as variable is void: last-command-charのエラーが出ないように