Changed the constructor of the LocalKeyboardControler