Extract some methods in GhostKeyboard.