eliminate input code duplication in marmalade
add key input for more modules
Merge pull request #16 from notaz/master

key input support for more modules