Keyboard problem using Photoshop C5 in Macbook Pro

I have installed the Photoshop CS5 application in my Macbook Pro mainly for doing my projects based on animation and now I am facing problem in using it because whenever I use the stamp tool it just disabled my Macbook Pro keyboard and all I need to do is to restart for making it work properly. Why this is happening? What should I do for this to fix?

Re: Keyboard problem using Photoshop C5 in Macbook Pro

This problem is occurring because the keyboard key combination is mapped for Toggle to mouse keys if the Alt key is continuously pressed. So in your Photoshop stamp tool you might have used the same key for several times by pressing it again and again. Now there is a fix for this issue, just follow the steps given below

STEP 1: Open the System Preferences window.

STEP 2: Select Accessibility -> Mouse and Trackpad.

STEP 3: Now uncheck the option “Press the option key five times to toggle mouse keys”.

STEP 4: Press OK and confirm it.
Now you can check the same operation in Photoshop and it should work fine without any issues.