Wrapper; Input; general cleanup and adding pressed/released/down state flags for testing state of keys in the update loop