Fixed windows.el has been used last-command-char that is obsolete function, change to use with last-command-event.