The quickest way I found to fix your bullet direction was to put a sub-event under the z key event, that says:
if portalmanimage is mirrored, set bullet angle of motion to 180.
and to fix the rate of fire to a single shot per button press., change "z is down" to "z is pressed"
the X key isn't doing anything, There's so much going on there, I'm not going to try and decipher it.
But I'm guessing you don't need all of those sub events under there. I might be wrong, though... Just not really sure what's going on there.
Anyways, hope that helps ya some..