Beginning to implement game code into menu. Overhaul of key state check.

Have to finish the existing key state functions.