Closes GH-315 KeyPressEvent generates error message