Moved graphics to Graphics and changed the way keyboard input is handled