removed use of deprecated getkeyboard method