keyboard input and removed gbc to own class