Cleaner behavior on special keys pressed