The problem is the way you've written them.
You need an additional control function. The control function will call your player function to move forward and call your bullet function to shoot.
You need an additional control function. The control function will call your player function to move forward and call your bullet function to shoot.