If you change the SMS key so that it does not send DOM_VK_CAPS_LOCK, then you won't need this special case here.