The best answer is keyboard. The relationship between the first pair of words, petal and flower, is that of part to whole—one word is a part of the other. Therefore, in the second pair of words, one word must be a part of the other. A keyboard is part of a computer.