how can i make the f-curve jagged? noob quiestion

how can i make this curve:



into something like this?


i’m new to animation, so please tell me the relevant shortcuts too… thankyou
acctually… what is the shortcut for a f-curve modifier

Change the curve interpolation from bezier to linear (T), then add a Stepped modifier to the curve