Vice

The Commodore 64 Emu, you can find here:

http://www.viceteam.org/

howto change custom keys for the joystick in the *nix version of vice