local glfw = honey.glfw return function(entities, id, data) if data.action == glfw.PRESS then if data.key == glfw.KEY_ESCAPE then data.window:setShouldClose(true) elseif data.key == glfw.KEY_SPACE then entities:save("save") elseif data.key == glfw.KEY_L then entities:load("save") end end end