Revert "fix keypress on special keys and other events on characters"

This reverts commit 8b73fdc804b26f69b4636634f0873c1ea2443231.