Clean up OnChar event handler.