Implemented single shot by pressing space.