.KL File Extension
What is a KL file?
A KL file is a key layout map that connects keyboard input on an Android device to actions in Android. It stores key definitions in UTF-8 text, which include the SCANCODE (the key number preceded by key), KEYCODE (the action the key is mapped to), and FLAGS (additional functionality associated with the key, like waking the device). KL files also include comments denoted by the pound character (#)
Android devices come with KL files pre-installed in the following directories:
These directories store several KL files, including the Generic.kl file, that Android references for specific input devices. For example, the device keyboard may use one KL file, while a connected joystick uses a separate KL file.
Common KL Filenames
Generic.kl - Contains a generic key layout that supports various standard external keyboards and joysticks. Google advises you not to modify Generic.kl files.
How to open a KL file
KL files are not meant to be opened. Instead, the Google Android operating system references the file to correctly map input gathered from a device to actions in Android.
However, if you are looking to modify the key layout map, you can open KL files with a text editor. After modifying the KL file, you must place it back in the directory in which you found it for it to take effect.