Fix bug where repeated key presses didn't trigger a render call