fixed idention bugs as well as the menu logic. moved key_map to main routine.
Merge pull request #116 from megagumbo/master

fixed indention bugs as well as the menu logic. moved key_map to main rou...