Keyboard&joysticks

I have made a matrix keyboard and I want to include 4 analog inputs like a joystick