To play the piano in Garageband, you will need to only click on the settings. Choose the Window---choose "show musical typing" you can also use command -K on the Mac. Then you will select the instrument you will want to use, in your case, the piano. The you will use the instrument using the keys.