Fixed gui and key event works correctly
Merge pull request #17 from Tiffastic/master

Fixed gui and key event works correctly