Add joystick function to menus

Added callback function to be registered with menu module that returns
input codes. Then I made a custom function to return input codes based
on keyboard and joystick.