I am trying to use the Keys enum type while scripting with Lua.
In C#, I have the following definitions:
luaVM["Keys"] = Activator.CreateInstance(typeof(Microsoft.Xna.Framework.Input.Keys));
luaVM["key"] = Keyboard.GetState();
But when compiling the lua script I get error "invalid arguments to method: KeyboardState.IsKeyDown" on the following line in my script:
if (key.IsKeyDown(Keys.Space)) then