If Not EscapeFlag Then EscapeFlag = True ' Set the Escape flag Return True ' Swallow the actual keystroke End If Else ' Map the key entered (i.e: "1".."9", "d", or "'", "`" , "?" , "~", ".", "+", "(" ) ' to the position 1..9, to be used for selecting the new character from a string like: ' eg: a[r]