After cleaning the keys of the keyboard, I put it back. Then I detected a problem. This problem was; Whenever I pressed "A", f2 was also working. I watched a video on YouTube to solve this. He said to take out the keyboard's USB, insert it while holding down esc+capslock+space and then release the keys. I did it and this time the space key remained pressed. Then, when I pressed caps lock, the space key stopped being pressed, but space stopped pressing. When I pressed "A" the f2 problem was not fixed either.
I tried resetting everywhere. I reset the profile and directly from the application in Razer Synapse, but it did not help.