Little help

how would i go about assigning controls to lets say left and right arrow of my logitech bluetooth keyboard ?

Use the keyboard(k) function and print(k) to find out what the keys are called then do if k == keyleft then