Keyboard NullPointerException fix

Application would crash on start, so i figured i'd better open a pull request even though it's a tiny fix :)