Added capture of cursor

Closes https://github.com/PistonDevelopers/piston-examples/issues/11
Merge pull request #12 from bvssvni/master

Added capture of cursor