Yeah, whenever i pirate, i end up getting the occasional person shooting at me without notice while i'm still typing... thank god for that escape key!
Another option is to hold your afterburney key, turn on mouse flight, set the cursor into a corner so you continualy loop, press enter WITHOUT letting go of your afterburner key, let go of thrust, and type, you'll be looping around the enemy at 200 m/s, should help atleast a bit if you want to roleplay while getting shot at, it's what i do.