Restrict Enterkey

I just want to restrict enterkey of an input textbox and multiline property should be true.anybody can help me?

I am using a multiline=true input textbox.I want to disable enterkey.
ie when user clicking on enterkey after typing some text it should not effect in text box
ie the cursor should not go to next line