I created a modified Cyrillic keyboard and everything works well except for 3 keys: the 3 keys which have 2 characters in the shift layer (pictured here).
The weird thing is that these characters work just fine on the default layer. Only when in shift layer do they not work. I have also provided my code for the characters here:
The other weird thing is that these character combinations work if I put them in a long-press pop-up, so the problem is not necessarily with the code. Please help!