Add input polling
Merge pull request #2 from jacquesh/input

Add input polling