function Keymap.KeysForAction(a)local u={}for a,O in ipairs(Keymap[a])do u[a]=O.KeyCode end return u end function Keymap.allKeys()local a={}for u,O in pairs(_inputData)do table.insert(a,u)end return a end function Keymap.getData(a)return _inputData[a]end function Keymap.newInputTable()local a={}for u,O in pairs(_inputData)do a[u]=0 end return a end

function Keymap.KeysForAction(actionName)
	local keys = {}
	for i, keyInfo in ipairs(Keymap[actionName]) do
		keys[i] = keyInfo.KeyCode
	end
	return keys
end

function Keymap.allKeys()
	local tbl = {}
	
	for k, _ in pairs(_inputData) do
		table.insert(tbl, k)
	end
	
	return tbl
end

function Keymap.getData(key)
	return _inputData[key]
end

function Keymap.newInputTable()
	local tbl = {}
	
	for k, _ in pairs(_inputData) do
		tbl[k] = 0
	end
	
	return tbl
end