Use ui::DomCode instead of string representation in ui::KeyEvent.