This is the 3732nd most frequent Korean word.
선물로
"As a gift" or "by way of a gift."
In this sentence, '선물로' indicates that the book was given as a gift on the occasion of a birthday.
그는 내게 생일 선물로 책을 주었다.
He gave me a book as a birthday gift.
Here, '선물로' describes the manner or intention of giving the keyboard, indicating it is a gift.
나는 친구에게 새로 산 키보드를 선물로 주기로 했어요.
I decided to give my friend the new keyboard as a gift.
In this sentence, '선물로' shows the purpose of the action of buying the bouquet, indicating it was intended to be a gift.