Thanks for your reply. I tried it but it didn't solve the issue. And when i try to change the tools for example i choose brush tool, the [ and ] still not working and i also noticed that the spacebar key which is the hand tool is not working when it is happening. I don't know what's the problem.
Ok, next step: Hold down cmd-alt-shift (Windows) and start Photoshop. When asked to delete settings, press "Yes".