thanks for the tip

My project is a bit complex, although. It reads and saves key labels and definitions from files in portuguese, english or spanish, and uses complex key commands. Some weapons are auto-repeat, others not, others depend on holding a key like a bow and arrow... So I prefer to have things under control this way.

Of course it's up to every user. If you like this quick snippet, you can use at will.