Fix persisting keyboard after long press disable of HUD

Fixed #386
Merge pull request #388 from k22mak/issue-386

Fix persisting keyboard after long press disable of HUD