Learn how to handle input