If a lua script doesn't work out, may I suggest AutoHotKey. With it, it's the easiest thing in the world to swap keys. I used it to remap my worn out WASD keys.

The script for your ZQXE would basically require no more than;

AHK scripting code:
z::q
q::z

x::e
e::x


But good luck.
Last edited by Daanando; Aug 28, 2013 at 11:06 AM.