move keypress listener out so list can be started/stopped

Avoid multiple stdin listeners
Merge pull request #1 from gaarf/patch-1

move keypress listener out so list can be started/stopped