move keypress listener out so list can be started/stopped

Avoid multiple stdin listeners