-- ================================================================================
-- LOCAL FUNCTIONS
-- ================================================================================

local function InputBegan(input, processed)
	if input.UserInputType == keyboardInput then
		local key = input.KeyCode
		isDown[key] = true
		onKeyDown:Fire(key)
	end
end -- InputBegan()

local function InputEnded(input, processed)
	if input.UserInputType == keyboardInput then
		local key = input.KeyCode
		isDown[key] = false
		onKeyUp:Fire(key)
	end
end -- InputEnded()