Yes it's possible, but it's pretty complicated & requires a lot of work.
Here's a demo I made about a year ago, that shows how to create user input. It's compromised of a mixture of both action parts & Lua script, however since Visionaire Studio 4.x it would technically be possible to create a system entirely out of Lua script.
A system made purely out of Lua script would probably be a lot less time consuming as opposed to the method I used for the demo, which took me about 2 or 3 days to sort out.
http://www.visionaire-studio.net/forum/thread/key-input-tech...Good luck!