LCL, grids: pass the pressed key to the editor only if it came from the grid, this should prevent entering in a loop frezzing the program if the key was typed in the editor

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45276 4005530d-fff6-0310-9dd1-cebe43e6787f