If you download an X-KeyPad configuration from the community the author may be using a custom grid layout. When you first create a new virtual device it will default to an XK-80 layout, 8 rows and 10 columns. You can change this by using the change device type option menu item and selecting a custom device with the desired number of rows and columns. Once this is changed the virtual device will open with that layout even if you change aircraft or restart X-Plane.