There's a couple issues here. If your bullet is its own class, with its own update method, you need to call that method every tick on every bullet, not just when the space bar key is pressed. One way to achieve this would be to maintain an array of all bullets currently created. Then iterate through that array and call each bullet's update method every tick. This also means you should set the velocity as a property of the bullet object.