I am making a game with BGE. It is turn based, so I want to save a sequence of key strokes in a list. The problem is that the list is not preserved the next time a key stroke is entered, as the script is run on every key event.
The way I have solved this til now is to convert the list to a JSON string and save it as a string property. However this is a very dirty way to do something like this.
How can I do this in a nice elegant way?