Well, my problem is that I've been trying to decide how I might make a user be able to customize what keys do what in a game. I'm not 100% sure how, but I'm also not asking for specific code for libraries. All I want is maybe some pseudo code which would be adaptable to most situations. Or, if this is too difficult, I will be using the Pheonix Engine, in Free Pascal, with no extra IDE's (just plain old pure FPC).

Can anyone help?

Thanks!