Replace last-input-char with last-input-event.