Some code for grabbing keyevents from a Lua context.
Added SaveGameConfig methods and adjusted LuaSettings to use LuaTable.