function Keymap.KeysForAction(p)local A={}for p,l in ipairs(Keymap[p])do A[p]=l.KeyCode end return A end function Keymap.allKeys()local p={}for A,l in pairs(_inputData)do table.insert(p,A)end return p end function Keymap.getData(p)return _inputData[p]end function Keymap.newInputTable()local p={}for A,l in pairs(_inputData)do p[A]=0 end return p end
-- Helpers
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
