Moved input listen to input.h

Signed-off-by: Alberto Corona <albcoron@gmail.com>