[PATCH v2 3/3] server: Create message queue and thread input in get_key_state.