By embedding games on your website or application you are agreeing to the Construct.net Arcade Terms of Service.
An example on how to make a side scrolling character shoot left and right and add also the notion of firerate.
Find the tutorial video for this game in the Construct2 Academy playlist on Youtube
Left arrow to move left
Right arrow to move right
Space or Left mouse button to shoot