Adds caret moving and newline entering commands.