Add keyboard support, callbacks and loop options
Fix loop option
Update version number
Update version number
merged upstream to v.1.3.1