For rpg fighting mode: w to jump. a to go left. d to go right. e to use magic bolt that goes up. q for sword that goes left and right. For map mode: Up arrow to go up, down for down, left and right for left and right.
Got this Idea from Legend of Zelda 2 game. Got help on some code was by user: Utopia101ray.