if you're using pj64 go to options configure controller plugin. and it should have boxes for each of the buttons found on a n64 controller. click the button next to it, and then press the key that you want to use for the corresponding button. if you're using 1964 it should be under options configure controller, or something similar