Stop InputField from exiting when pressing enter?

Hi there! I’m trying to make a coding game and so far have tried to let the user input his code through an input field but I ran into the problem of the input field exiting when enter is pressed. Can I disable this? Or should I try to let the user input his code another way?

E

Edit: I could solve the problem myself. I just set the content type to custom and then changed the line type from single to Multi Line Newline. :slight_smile: