so I would create three variables to store the camera's possession and then modify the variables and then finally change the angle of the camera:
if key_map['up']:
self.camY = self.camY + 0.09
if key_map['down']:
self.camY = self.camY - 0.09
if key_map['right']:
self.camX = self.camX + 0.09
if key_map['left']:
self.camX = self.camX - 0.09
if key_map['space']:
self.camZ = self.camZ + 0.09
if key_map['shift']:
self.camZ = self.camZ - 0.09
# sets the camera posision
self.camera.setPos(self.camX, self.camY, self.camZ)
just to say I used a key map and then adjusted the key map according to the keys pressed, but instead you can turn all the if statements into functions