This is basically the moonscript version of https://github.com/a327ex/boipushy yet it only takes into consideration the Keyboard and the mouse no gamepad.
I wanted to understand this module so i can use it efficiently and perhaps add functionalities to it in the future.