Fix NullPointerExceptions in the improved Keyboard implementation
Fix NullPointerExceptions in the improved Keyboard implementation

This addresses the issue brought up in #268.
gurkenlabs/litiengine,gurkenlabs/litiengine