Hi! This is maybe a stupid question but it's starting to annoy me..

Somthimes when I write procedures and functions in Delphi, I get an error message saying "list index out of bounds" BEFORE compiling the program, it just pops up while writing the code. It doesent matter what code the procedure/function contains. Afterwards, I can't use the "shift" symbols (like the following: /&#(")#=AŹ§) nor can I press enter to change line. Why is this, and how can it be avoided or fixed? The only "fix" I've found so far, is restarting delphi or reopening the project which can be a real nag..