Do not install Tcl/Tk 8.5.9 into macOS Sierra, as that specific version is already provided by Apple in the operating system installation. Provided that you have not already installed Tcl/Tk 8.5.9 frameworks, then move those specific Tcl/Tk 8.5.9 folders that you have shown — to the Trash.
Etresoft has a point about the keyboard in use.
You need to read about the PYTHONPATH environment variable in the Python v3.5.2 documentation, and make certain that you have it set to the Python v3.5.2 library location — only when you are using Python v3.5.2. If you are launching idle3, and it is looking in the default, blank PYTHONPATH libary location, then it is attempting to use the System Python 2.7.10 libraries, and that will explode idle3 too.
Python dot org only recommends ActiveState 8.5.18 for Python 2.7.12, and 3.5.2 Mac installers. My implementation of Python 3.5.2 is compiled in macOS Sierra with current compilation tools, and that is why I have Tcl/Tk 8.6.4 functionality. Remove your Python 3.5.2, install the recommended ActiveState 8.5.18, and then reinstall Python 3.5.2 back into your /Applications folder.