KeyHit/KeyDown in/to a Lua script

BlitzMax Forums/BlitzMax Beginners Area/KeyHit/KeyDown in/to a Lua script

MOBii(Posted 2014) [#1]
Import pub.lua

Lua function: io.read() and io.read(1) make my application to freeze.

How can I check for: KeyHit/KeyDown while I am in the Lua script in a maxgui: WaitEvent()?