Sorry to say this but your or condition (event 38) doesn't make any sense either z or x is not being pressed down while conflicts with two previous condition that require one of these two keys down. Why not just just use normal condition without inversing and without using or condition? If two keys being pressed down at the same time they won't able to shoot.