Move processAllKeyboardEvents out of the constructor to match the style of the other parameters