Change getter for the keyboard layout so that only the first layout is returned

The keyboardLayout variable is a comma-separated String containing all the
existing keyboard layouts. Thus, the getKeyboardLayout method only returns the
first entry, which is the current layout.
Fix formatting