I made a RPG template, which you can download in AUM100, which does mapping of keys like you have, but reads it from an external .ini file.
This one does not have any slowdown, and is made in a seperate script, so all you have to do is include it, and you can use it straight away.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/