Excellent timing! I've been reviewing the CSS code hinting pull request by @zoufahl and this fix needs one more change to set lastChar:
```
            } else {
                lastChar = String.fromCharCode(event.keyCode);
            }
```

Note that this uses event.keyCode (not event.charCode).