Added up down control (Q,Z) , formatted code