Character mouvement 3d sidescroller

Hello,
I have a question :
In a 3d sidescroller template, I would like my character (by pressing a key) cant push / pull a block and climb but above all that, if no special key is pressed, I Would like he can pass forward without being blocked by this block.
Can someone explain me how to do this ?
Thanks
(Sorry for the bad english!)