Variables
As you know by now there are global functions. Well guess what? There are also global variables used to access them from anywhere.
Console Variables
status_code: gets saved and can be accessed from anywhere.
run: set run to false if you want to exit default should be true.
pressed_key: stores the current pressed key.