|"I am using a PS/2 keyboard and i had already changed keyboard with a new one but the problem is still there.It doesn't have the problem always."|
If the keyboard is not new, or if the cord has ever been yanked on, broken wires inside the cord is a common problem - if the broken wire's ends still touch each other inside unbroken wire insulation, the connection is intermittent rather than being reliable.
It's certainly possible for a PS/2 port's circuits to be damaged, but in that case the properly working keyboard (that always works fine on another computer) NEVER works properly when it's plugged into the port, so that's not your problem.
You can have problems with any PS/2 port connection if the connection is loose in the port.
It's common for the PS/2 port's female connections to become fatigued after the PS/2 plug from (a) keyboard(s) has been plugged in a lot, such that it doesn't take much for the connection to become poor. Sometimes you need to prop up the cord one way or another so that the connection of the plug in the port is always good.
If you're using a simple gender adapter to adapt a USB male plug on the end of the cord
- the connection of the USB plug on the cord, the adapter, and the PS/2 port must be good - reliable
- the keyboard must be a "combo" keyboard that can be used with either a USB port or a PS/2 port
- the gender adapter must be one meant to be used with a keyboard - it's often colored purple - one for a mouse - often colored green - usually does not have the connections for a keyboard wired up within it.
- rarely - I've only seen this a few times - the mboard may not detect the keyboard when the adapter is used
"And i am using Windows XP"
That info can be useful, but that has nothing to do with the keyboard not being detected correctly.
Corded PS/2 and USB keyboards should always be detected by the mboard even BEFORE the operating system loads.
Windows has the standard drivers for PS/2 keyboards built into it and they're automatically loaded. (If the keyboard has extra special keys or buttons, you may need to install specific software for those.)
"And what about that automatic restart of browser to home page..?? "
You said in your first post..."Also my browser is opening continuously without clicking
on the icon".
(Automatic Restarting of the computer is a different subject.
XP is set by default to Restart the computer when It encounters a fatal error - an error it can't recover from .)
That can be caused by certain types of malware.
(However, I have never heard of any malware that can cause Windows to Restart the computer.)
Usually, Malwarebytes will detect and get rid if that type of malware, even when other major anti-malware programs can't.
See response 22 in this
"Malwarebytes will get often get rid of malware that won't allow other anti-malware installation programs, or other anti-malware programs, to run normally."
"and when clicking some keys ,a beep sound comes always."
That isn't necessarily abnormal.
If you press a key when it's not appropriate for you to press that key in the particular situation in Windows, all keyboards will cause Windows to generate an error sound .
(If the keyboard has extra special keys or buttons, you may need to install specific software for those.)
Malware rarely causes that, but when it does you almost always also get an error message - e.g. Access Denied, or Your user does not have administrator privileges, or similar.