A great tool to use for shaping foam is a curry comb. These are used for grooming horses, and can be found at tack stores. There are a few different kinds, the ones we want for model railroading use are metal, with serrated rings, like in the picture.
Also, another excellant option for foam is...