wlr_seat_set_keyboard takes a wlr_input_device. Take a wlr_keyboard instead.
wlr_seat_set_keyboard
wlr_input_device
wlr_keyboard