Conversion method for string to SDL2 keys. Closes #269.