If your player is stunned, you can't move for a couple of seconds. Stars fly around your head and you look drowsy. When your character shakes his head you can move again. Stunning can be done by the following:

Monkey's banana

Pumpking's head

Charging into a wall as Crazy Bull