Game Development Reference
Push Layer 1 and select the empty object. Choose Keyboard as the sensor
( Spacebar ), add And as the controller, and add Edit Object as the actuator.
In the menu, select Bullet as the object to be added into the scene.
Connect the logic bricks as shown in the next screenshot: