The procedure is the same for win and mac. The manual should get you going. In prefs > devices, choose and enable your midi device. Create a track with the VSTi and choose track input input > midi, all channels. Rec enable the track and turn on monitoring. Now you can play the VSTi with the midi keyboard. Reaper will record midi only so you can change the instrument later on.