Ticking vs. user input, and order of execution question -

Consider the tick as being updated every frame. The input usually only fires once (on down and on up). It’s common to use booleans and branches in the tick, these booleans are then turned on/off based in the input.