Password help!

Hi, iv read the tutorial on making passwords and stuff but iv got this game that im making and i want it so it ses a password at the end of every level so you dont lose your save.

How do i make it so if i type in “a” it goes to frame 10
and if i type in “b” it goes to frame 11
etc for as many levels as i make.

Plz help