fix keypress on special keys and other events on characters