public void keypress(char key) {
        if (key == '1') {
            reverse = !reverse;
        } else if (key == '2') {
            reverse2 = !reverse2;
        } else if (key == 'q') {
            offset -= 5;
        } else if (key == 'w') {
            offset += 5;
        } else if (key == 'a') {
            offset2 -= 5;
        } else if (key == 's') {
            offset2 += 5;
        }
    }