sorry for the trouble, Cave Story basegame is really weird with controller; you could try pressing F5 so the game reads from keyboard
There is also DoConfig, I forgot if there are any options there that would help in this case