I use simple
if action_id then
print("action_id: "..action_id);
end
And no “raw” action_id at all. And no action_id when I press keys /axis / triggers on a controller.
But I receive ordinary keyboard keys from my keyboard (to know, that it works at first place)