How to make the android app responsive to the soft keypad return key?

What i want to do is,

When the user taps the return(enter) key with the mobile keypad, the app should respond.

i just want to how to make the app responsive to the user interactions with the mobile keypad

Any suggestions would be helpful

Source: Android Questions