fix for broken keyboard settings
bad closing callbacks
Merge pull request #3 from Lusito/keyboardfix

Keyboardfix