I have made a simple app that takes user-input in a text-field and when the "Submit" button is pressed, the text is displayed in the label. Now, I want that when the user presses the Submit button, The Keyboard Should Go Away, And also when return key on keyboard is pressed, then it should act as the submit button and display the text.

Some help on this would be great. Thanks.