Added functions to check joystick directions and not keyboard arrow keys.