Call a Function on Input

Look at this video:

I have some problems related to the input… or something like that… I’m not sure.

Please, when you have finished it, can you tell me if it works well for you or if you also have problems… Thank you very much!!