Attempting to figure out how to account for multi-key holds

Right now holding one key down, then another, then letting go of the
second key while continuing to hold down the original key results in
unwanted behavior.
The code so far has failed to fix this issue. I must sleep on it since I
have an early appointment tomorrow.