make sure the key codes work properly