This is a flowchart about the process of pressing the button. The user presses the up, down, left, and right keys to make the program complete the corresponding response. Visualizing the process first can make programming ideas clearer. A flowchart is a diagram that represents a workflow or process. A flowchart can also be defined as a graphical representation of an algorithm, which gradually disassembles tasks and solves problems. Check this flowchart for more details.