shorten and comment CoreUserInputHandler::handleJoin