Fix persisting keyboard after long press disable of HUD

Fixed #386