Use the arrow keys to navigate around and the space bar to shoot at the target. Feel free to use this template for your own 2-D scrolling sniper games.
Change keyboard controls and use mouse controls instead. Move the mouse to point and click to shoot. The target reappears so you can keep shooting.