move parts of get_keyboard_height to global
Merge pull request #272 from chozabu/inputpull3

move parts of get_keyboard_height to global