To do this you have a harpoon which you can use to shoot the bubbles as they bounce over you.
The controls set by default are:
|Move Left||Left Arrow Key|
|Move Right||Right Arrow Key|
And remember you can change the control keys as you like in the controls option in the game. Just click on the action and press a key to assign to it.