fixed the behaviour when updateKeyboard is called with no parameters.