You need to press the 'Left' arrow key to glide left. You need to press the 'Right' arrow key to glide right. You need to press the 'Space' key to shoot the laser beam.
This Project actually wasn't my own idea though, I took this from this website; https://www.101computing.net