Elixir exs script - keyboard capture

You can read my reply on a similar topic: How to monitor keyboard input? - #4 by D4no0

Not sure about doing this in a single script.