Automatically switch between HUD and keyboard.
Merge pull request #133 from ericwan78/issue-124

Automatically switch between HUD and keyboard. fixes #124