Use the last element of this-command-keys-vector instead of last-command-event.

This is for smartrep which does not change last-command-event during repetition.