Recording music from yamaha keyboard onto laptop?

i have a yamaha keyboard that has the facility to sync to a computer. I want to play music and at the same time record it to my laptop. The keyboard has a usb socket so i presume i connect through that. How do i then record my music? Do i need a certain music software? Many thanks
2 answers 2