I've used External Keyboard Helper to remap keys on my Gemini to support phonetic Cyrillic (works with some downsides). One of the best features is the hardware keys tester which tests what keycode the pressed button produces - might be helpful for the camera button or other uses.