if key == 'f': front
elif key=='F': front inverse
elif key == 'b': back
elif key == 'B': back inverse
elif key=='u': up
elif key== 'U': up inverse
elif key== 'd': down
elif key == 'D': down inverse
elif key == 'l': left
elif key == 'L': left inverse
elif key == 'r': right
elif key == 'R': right inverse
elif key == 'p': play / solve cube after puzzling / shuffling
Lazy to write this file so infer from the above code