You can grab onto things by pressing the B button and then selecting the object you want to grab. You can also use your cape to swing around and grab onto things.