At home, I just use a folding table and put my keyboard on top so I don't have that problem. At work, however, I have one of those trays that has arms so that you can adjust the height and I constantly catch that tender spot on the side of my kneecap with it and it hurts like hell, heh.
So yeah, keyboard trays suck.