fixing string parsing errors for button mapped keys