There are a few things to check. First make sure that you have the input bindings set up correctly. Compare the file you have with the screenshot.
It that looks ok, you can move on to “hero.script”.
The first thing that happens is that the script tells the engine that input should be forwarded to the hero game object. That is done in init():
function init(self)
-- this tells the engine to send input to on_input() in this script
msg.post(".", "acquire_input_focus")
...
Note that the “.” denotes the current game object, which is the game object that has this script added as a script component. Make sure you got the dot right and the spelling of “acquire_input_focus”.
Also check that the game object “hero.go” contains a script component that points to “hero.script”. Without that the script won’t run at all.
If you got this right can you please post your script code and we’ll have a look?
M