Removed unused enableKeyboard variable