fixed parsing of end statements in scripts with IDs matching keywords
Don't let the player rebind the ESC key

This fixes part 2 of bug #732