Added key event phase to loop, and added keys boolean.
Key presses are now a part of the main loop logic. Also, the keys_ boolean (as well as its enumeration) will be used for sending values to Player, once Assets is scrapped.