Problems Getting Remote to recognize new keylayouts file

Hi, So I have edited the Keylayouts file on my android box to coincide with the functions on my remote. The problem is, now the usb remote, the original infrared remote, and the Logitec keyboard only work for a select few commands.

basically I have mouse functionality now with no keyboard or d-pad functionality.

How Does android know to use the keylayout file?