IME includes several utilities that will you help you manage the soft keyboard. A tutorial with a working example is available here. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
HeightChanged (NewHeight As Int, OldHeight As Int) HandleAction As Boolean