Apple - Keyboard and touchpad are not working when booting from live USB
Ubuntu does not natively support MacBook Pro Mid-2017 yet, so you have to manually install some drivers and patches to get it fully working. During the process, you will need a usb mouse. Also if you don’t have a usb keyboard, you can use on-screen keyboard (which is what I did). Then you have to follow this tutorial: Linux on MacBook Pro Late 2016 and later