fixing keyin filter
adding test
configurable port for test
Merge pull request #141 from nikhan/master

OK. keyin works now.