Fix mapped keys for joystick and joystick hats.