Adjust get_key_event_modifiers and get_key_name to make get_keyevent_name can work in to_upper is False.