When programs runs out of memory, it's hard for them to keep processing! I thought, "hey, maybe if he increases it it will work".
Anyway, for your stick keys problem there's a solution. I haven't tested it myself but. Turn off keyboard repeats. In the terminal, type
xset -r off
When you are...