Added FrameManager, key handling, and controls