Want to create a Default Button

I want to know how to create a “Default Button” so that when user entered some particular TEXT in Text box and after that press the enter button the event should be fires

Kindly provide me an answer

Thanks in Advance

That would be a Javascript question, as PHP would not govern this behavior.

What is the event that you want to fire when the enter button is triggered - to submit the form?