Figure 5—The GetKey procedure doesn’t suspend the loop; it just returns the code. Code = 0 when the keys aren’t pressed.