It's right click by default. You're supposed to charge-up the attack to increase the damage done by the bayonet. Hold the melee button down for a few seconds before releasing it . Oh,and don't forget to attach the bayonet if you're in close quarters.