Merge pull request #245 from jorgesilva/develop

Changed check for HUD when keyboard is dismissed. Fixes #244
Merge pull request #247 from jorgesilva/develop

Better handling of switch events
Minor refactoring. Shield connection needs lots of work.