Keyboard Line In Recording

Hey, I just downloaded Audacity to record sound off of my keyboard. I’ve connected my keyboard to my PC using the line in port. How am I to continue? When I press the record button it says: Error while opening sound device. Please check the input device settings and the project sample rate.

Help please?

See if anything in this wiki is helpful.